Additional safety check
authorstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 29 Sep 2006 21:45:29 +0000 (21:45 +0000)
committerstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 29 Sep 2006 21:45:29 +0000 (21:45 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11776 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/global.php

index fbbac6f..dfcc3a8 100644 (file)
@@ -464,6 +464,7 @@ function list_files($directory_path, $extension='', $return_filenames_only=TRUE)
     // 
     if (empty($directory_path) 
      || !is_dir($directory_path) 
+     || !is_readable($directory_path)
      || !($DIR = opendir($directory_path))) {
         return $files;
     }