From 1c399e5c01f68bbc6bcc261ee202aac23cdc8816 Mon Sep 17 00:00:00 2001 From: Gina Haeussge Date: Fri, 4 Apr 2008 19:12:07 +0200 Subject: [PATCH] added awareness of file permissions Files as listed using the "direct" parameter now need to be readable to the webserver to be part of the list. darcs-hash:20080404171207-2b4f5-c72e39a8fa30b2629cef0330b1b6d1a6ce23413d.gz --- syntax.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax.php b/syntax.php index 908739e..7a1a48e 100644 --- a/syntax.php +++ b/syntax.php @@ -319,6 +319,8 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin { $mid = str_replace('/', ':', substr($filename, strlen($this->mediadir))); $perm = auth_quickaclcheck($mid); if ($perm < AUTH_READ) continue; + } else { // exclude not readable files + if (!is_readable($filename)) continue; } array_push($files['names'], $filename);