summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-10-02 10:23:47 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-10-02 10:23:47 +0200
commit93a6d0536e2b8c3e75c53753a54e7613bf4c00fe (patch)
tree39c442ad125aaf831b8fbbe448d32a1418ae8730 /inc/auth.php
parent9eda0f2b927415577b96f128953df614521dbd72 (diff)
downloadrpg-93a6d0536e2b8c3e75c53753a54e7613bf4c00fe.tar.gz
rpg-93a6d0536e2b8c3e75c53753a54e7613bf4c00fe.tar.bz2
properly encode user wildcard in ACLs FS#2039
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php2
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);
}
}
}