]> git.mjollnir.org Git - s9y.git/commitdiff
Let's not choke on not-readable directories.
authorjannis <jannis>
Thu, 20 Oct 2005 11:07:32 +0000 (11:07 +0000)
committerjannis <jannis>
Thu, 20 Oct 2005 11:07:32 +0000 (11:07 +0000)
include/plugin_api.inc.php

index 90ec3e3b0e8acd5d13fcd210f99e13e9f2322e43..47158bb39bf83d12fbfdf442d05561bf055a46e4 100644 (file)
@@ -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;
                 }