From 941d21a6b081698048392f9d4187381f02804b06 Mon Sep 17 00:00:00 2001 From: jannis Date: Thu, 20 Oct 2005 11:07:32 +0000 Subject: [PATCH] Let's not choke on not-readable directories. --- include/plugin_api.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/plugin_api.inc.php b/include/plugin_api.inc.php index 90ec3e3..47158bb 100644 --- a/include/plugin_api.inc.php +++ b/include/plugin_api.inc.php @@ -185,7 +185,7 @@ class serendipity_plugin_api { $d = @opendir($ppath); if ($d) { while (($f = readdir($d)) !== false) { - if ($f{0} == '.' || $f == 'CVS' || !is_dir($ppath . '/' . $f)) { + if ($f{0} == '.' || $f == 'CVS' || !is_dir($ppath . '/' . $f) || !is_readable($ppath . '/' .$f)) { continue; } -- 2.39.5