diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-10-02 10:23:47 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-10-02 10:23:47 +0200 |
commit | 93a6d0536e2b8c3e75c53753a54e7613bf4c00fe (patch) | |
tree | 39c442ad125aaf831b8fbbe448d32a1418ae8730 | |
parent | 9eda0f2b927415577b96f128953df614521dbd72 (diff) | |
download | rpg-93a6d0536e2b8c3e75c53753a54e7613bf4c00fe.tar.gz rpg-93a6d0536e2b8c3e75c53753a54e7613bf4c00fe.tar.bz2 |
properly encode user wildcard in ACLs FS#2039
-rw-r--r-- | inc/auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index e1f689f96..90ce61a37 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -107,7 +107,7 @@ function auth_setup(){ $AUTH_ACL = file($config_cascade['acl']['default']); //support user wildcard if(isset($_SERVER['REMOTE_USER'])){ - $AUTH_ACL = str_replace('%USER%',$_SERVER['REMOTE_USER'],$AUTH_ACL); + $AUTH_ACL = str_replace('%USER%',auth_nameencode($_SERVER['REMOTE_USER']),$AUTH_ACL); } } } |