diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-01-29 11:29:26 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-01-29 11:29:26 +0000 |
commit | 56f35e00b1945da4331bbf2550167a098c8ab93a (patch) | |
tree | 4fccaeb82fd5968104ad670a0da502f8658dbaaf /pmwiki.php | |
parent | fabab241f07b8aebe0c3185518349fe5df11e027 (diff) | |
download | pmwiki.svn-56f35e00b1945da4331bbf2550167a098c8ab93a.tar.bz2 |
Page attributes passwords form: allow for +addition and -removal of passwords, users, groups (cont.)
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4614 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'pmwiki.php')
-rw-r--r-- | pmwiki.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3041,7 +3041,7 @@ function HandlePostAttr($pagename, $auth = 'attr') { $page = RetrieveAuthPage($pagename, $auth, true); if (!$page) { Abort("?unable to read $pagename"); } foreach($PageAttributes as $attr=>$p) { - $v = stripmagic(@$_POST[$attr]); + $v = trim(stripmagic(@$_POST[$attr])); if ($v == '') continue; if ($v=='clear') unset($page[$attr]); elseif (strncmp($attr, 'passwd', 6) != 0) $page[$attr] = $v; |