From d752aedee962294dd2bbc120557d6b6b79c970a9 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 14 Nov 2009 13:35:17 +0100 Subject: more work on user and group cleaning Ignore-this: b824c2941d3631bdf83350e325606d3e darcs-hash:20091114123517-7ad00-d32833a88cb5f654a8874542d4d59f1f401d4453.gz --- lib/plugins/acl/admin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/plugins/acl/admin.php') 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__'){ -- cgit v1.2.3