Don't include $iceRoot in comparison

This commit is contained in:
Matt Pass
2015-04-25 12:24:57 +01:00
parent de5e759ac9
commit c21d57e36e

View File

@@ -126,7 +126,7 @@ foreach($finalArray as $entry) {
for ($i=0;$i<count($_SESSION['bannedFiles']);$i++) {
if($_SESSION['bannedFiles'][$i] != "" && strpos($entry,$_SESSION['bannedFiles'][$i])!==false) {$canAdd = false;}
}
if ($docRoot.$iceRoot.$location."/".$entry == $docRoot.$iceRoot.$ICEcoderDir) {
if ($docRoot.$iceRoot.$location."/".$entry == $docRoot.$ICEcoderDir) {
$canAdd = false;
}
if ($entry != "." && $entry != ".." && $canAdd) {