From 31bcb667b3ea63044d819ab82a7a32d8fed4fc5e Mon Sep 17 00:00:00 2001 From: Pavel Brych Date: Thu, 9 Feb 2012 12:05:22 +0100 Subject: [PATCH] Hope to solve ACL check problem --- syntax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index 0f16979..74edfd3 100644 --- a/syntax.php +++ b/syntax.php @@ -613,7 +613,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin { if (!$params['direct']) { // exclude prohibited media files via ACLs $mid = str_replace('/', ':', substr($filepath, strlen($this->mediadir))); - $perm = auth_quickaclcheck($mid); + $perm = auth_quickaclcheck(ltrim($mid,":")); if ($perm < AUTH_READ) continue; } else { if (!is_readable($filepath)) continue;