summaryrefslogtreecommitdiff
path: root/inc/auth
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2006-03-02 11:18:50 +0100
committerAndreas Gohr <gohr@cosmocode.de>2006-03-02 11:18:50 +0100
commit6c2bb1005f9be48e398a5b41494d235d7061b7bb (patch)
tree27ec23233a11d3138f1c318010ace4b6bbfd4dc7 /inc/auth
parenta18f748f73f0a18dc514f6bd65cad3587fb71baf (diff)
downloadrpg-6c2bb1005f9be48e398a5b41494d235d7061b7bb.tar.gz
rpg-6c2bb1005f9be48e398a5b41494d235d7061b7bb.tar.bz2
Allow non-ID names in ACLs
Some auth backends allow special chars like whitespaces in user and group names. This made problems with the existing ACL checks and ACL manager. This patch makes the ACL system work with these cases by (url)encoding all special chars below 128. darcs-hash:20060302101850-6e07b-14bda9dbdb3528904325419b35bb9eddb0d1dde3.gz
Diffstat (limited to 'inc/auth')
-rw-r--r--inc/auth/plain.class.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/auth/plain.class.php b/inc/auth/plain.class.php
index 3ed014262..d3df1c0dd 100644
--- a/inc/auth/plain.class.php
+++ b/inc/auth/plain.class.php
@@ -15,6 +15,8 @@ define('AUTH_USERFILE',DOKU_CONF.'users.auth.php');
// we only accept page ids for auth_plain
if(isset($_REQUEST['u']))
$_REQUEST['u'] = cleanID($_REQUEST['u']);
+if(isset($_REQUEST['acl_user']))
+ $_REQUEST['acl_user'] = cleanID($_REQUEST['acl_user']);
class auth_plain extends auth_basic {