From: jannis Date: Thu, 20 Oct 2005 11:07:32 +0000 (+0000) Subject: Let's not choke on not-readable directories. X-Git-Tag: 0.9~45 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=941d21a6b081698048392f9d4187381f02804b06;p=s9y.git Let's not choke on not-readable directories. --- 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; }