浏览代码

Additional safety check

stevetruckstuff 19 年之前
父节点
当前提交
60769f3bd8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      functions/global.php

+ 1 - 0
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;
     }