Skip to content
Snippets Groups Projects
Commit 4db77915 authored by Christian Marg's avatar Christian Marg Committed by Andreas Gohr
Browse files

Apply group/user cleaning on saving ACLs FS#1859

parent e5fc893f
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,13 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin {
// re-add all rules
foreach((array) $_REQUEST['acl'] as $where => $opt){
foreach($opt as $who => $perm){
if ($who[0]=='@') {
if ($who!='@ALL') {
$who = '@'.ltrim($auth->cleanGroup($who),'@');
}
} else {
$who = $auth->cleanUser($who);
}
$who = auth_nameencode($who,true);
$lines[] = "$where\t$who\t$perm\n";
}
......
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