Skip to content

Commit b10c399

Browse files
committed
Add check
1 parent 12c8d1d commit b10c399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

endpoints/jqueryFileTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function getdir($dir, $dirsOnly=false, $recurse=array()) {
253253

254254
$ext = strtolower(preg_replace('/^.*\./', '', $file));
255255

256-
if(count($allowed) && !$allowed['.'.$ext]) continue;
256+
if(!is_null($allowed) && count($allowed) && !$allowed['.'.$ext]) continue;
257257

258258
array_push($dirents, file_entry($path));
259259
}

0 commit comments

Comments
 (0)