Skip to content
Snippets Groups Projects
Commit 93a6d053 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

properly encode user wildcard in ACLs FS#2039

parent 9eda0f2b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment