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 fbbac6fc402f99bb5b91a832928e5dd040fd7c1b..dfcc3a837a7dd5a665e42e5e06f378bde3d4ef62 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;
     }