From 917bb229dd25dc9700e60c6391c94dc9ea2afd46 Mon Sep 17 00:00:00 2001 From: stevetruckstuff Date: Fri, 29 Sep 2006 21:45:29 +0000 Subject: [PATCH] Additional safety check git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11776 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/global.php | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.25.1