check whether directory is executable for the webserver user, fixes #612

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2011-02-25 16:38:34 +01:00
parent b325e50da1
commit 50ae198164

View File

@@ -46,7 +46,7 @@ function findDirs($path, $uid, $gid)
$path = array_pop($list);
$path = makeCorrectDir($path);
if(!is_readable($path))
if(!is_readable($path) || !is_executable($path))
{
//return $_fileList;
// only 'skip' this directory, #611