diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-11-14 13:35:17 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-11-14 13:35:17 +0100 |
commit | d752aedee962294dd2bbc120557d6b6b79c970a9 (patch) | |
tree | 58b78866250c0387aaf6876721f5665c13e7163a /lib/plugins/acl/admin.php | |
parent | 191bb90af90d4b063435ee55d67082e7453ed1fb (diff) | |
download | rpg-d752aedee962294dd2bbc120557d6b6b79c970a9.tar.gz rpg-d752aedee962294dd2bbc120557d6b6b79c970a9.tar.bz2 |
more work on user and group cleaning
Ignore-this: b824c2941d3631bdf83350e325606d3e
darcs-hash:20091114123517-7ad00-d32833a88cb5f654a8874542d4d59f1f401d4453.gz
Diffstat (limited to 'lib/plugins/acl/admin.php')
-rw-r--r-- | lib/plugins/acl/admin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/plugins/acl/admin.php b/lib/plugins/acl/admin.php index 977bfc883..59671a0cb 100644 --- a/lib/plugins/acl/admin.php +++ b/lib/plugins/acl/admin.php @@ -62,6 +62,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin { function handle() { global $AUTH_ACL; global $ID; + global $auth; // fresh 1:1 copy without replacements $AUTH_ACL = file(DOKU_CONF.'acl.auth.php'); @@ -76,9 +77,9 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin { // user or group choosen? $who = trim($_REQUEST['acl_w']); if($_REQUEST['acl_t'] == '__g__' && $who){ - $this->who = '@'.ltrim($who,'@'); + $this->who = '@'.ltrim($auth->cleanGroup($who),'@'); }elseif($_REQUEST['acl_t'] == '__u__' && $who){ - $this->who = ltrim($who,'@'); + $this->who = ltrim($auth->cleanUser($who),'@'); }elseif($_REQUEST['acl_t'] && $_REQUEST['acl_t'] != '__u__' && $_REQUEST['acl_t'] != '__g__'){ |