From 4d34cdb9fc9e84ba48f18b64183d71c8d64544b3 Mon Sep 17 00:00:00 2001 From: Marco Dickert Date: Fri, 19 Jun 2015 15:04:06 +0200 Subject: [PATCH] misterunknown: fixed problems with openbasedir --- ifm.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ifm.php b/ifm.php index 6ab32ed..c62f65b 100644 --- a/ifm.php +++ b/ifm.php @@ -100,6 +100,7 @@ function getFiles($dir) { elseif(($result==".htaccess" || $result==".htpasswd") && $config["showhtdocs"]!=1) {} // check if we are granted to see .ht-docs elseif($result==".") {} // the folder itself will also be invisible elseif($result!=".." && substr($result,0,1)=="." && $config["showhiddenfiles"]!=1) {} // eventually hide hidden files, if we should not see them + elseif(!@is_readable($result)) {} else { // thats are the files we should see $item = array(); $i = 0;