From: stevetruckstuff Date: Fri, 29 Sep 2006 21:45:29 +0000 (+0000) Subject: Additional safety check X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=917bb229dd25dc9700e60c6391c94dc9ea2afd46;p=squirrelmail.git Additional safety check git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11776 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/global.php b/functions/global.php index fbbac6fc..dfcc3a83 100644 --- a/functions/global.php +++ b/functions/global.php @@ -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; }