From 89486f7bc645108e38463e2a0c236246eee0a48f Mon Sep 17 00:00:00 2001 From: Gina Haeussge Date: Sun, 17 Jan 2010 12:47:37 +0100 Subject: [PATCH] Only use titlefile if it is actually there and readable --- syntax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index bedaa26..f7c31a1 100644 --- a/syntax.php +++ b/syntax.php @@ -608,7 +608,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin { if (!$params['direct']) { $mid = str_replace('/', ':', substr($titlefile, strlen($this->mediadir))); $perm = auth_quickaclcheck($mid); - if ($perm >= AUTH_READ) { + if (is_readable($titlefile) && $perm >= AUTH_READ) { $filename = io_readFile($titlefile, false); } } else {