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

fixed information leakage in ACL plugin FS#1847

parent 214dce0f
No related branches found
No related tags found
No related merge requests found
...@@ -16,9 +16,11 @@ require_once(DOKU_INC.'inc/init.php'); ...@@ -16,9 +16,11 @@ require_once(DOKU_INC.'inc/init.php');
require_once(DOKU_INC.'inc/common.php'); require_once(DOKU_INC.'inc/common.php');
require_once(DOKU_INC.'inc/pageutils.php'); require_once(DOKU_INC.'inc/pageutils.php');
require_once(DOKU_INC.'inc/auth.php'); require_once(DOKU_INC.'inc/auth.php');
//close sesseion //close session
session_write_close(); session_write_close();
if(!auth_ismanager()) die('forbidden');
$ID = getID(); $ID = getID();
if(!auth_isadmin) die('for admins only'); if(!auth_isadmin) die('for admins only');
...@@ -42,6 +44,7 @@ if($ajax == 'info'){ ...@@ -42,6 +44,7 @@ if($ajax == 'info'){
if($ns == '*'){ if($ns == '*'){
$ns =''; $ns ='';
} }
$ns = cleanID($ns);
$lvl = count(explode(':',$ns)); $lvl = count(explode(':',$ns));
$ns = utf8_encodeFN(str_replace(':','/',$ns)); $ns = utf8_encodeFN(str_replace(':','/',$ns));
......
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