diff --git a/lib/multiple-results.php b/lib/multiple-results.php index ae25e3c..34f1b97 100644 --- a/lib/multiple-results.php +++ b/lib/multiple-results.php @@ -113,7 +113,7 @@ if (startTab!=top.ICEcoder.selectedTab) { $r = 0; function phpGrep($q, $path, $base) { $fp = opendir($path); - global $r, $ICEcoder, $serverType, $selectedFiles, $context; + global $r, $ICEcoder, $serverType, $selectedFiles, $docRoot, $ICEcoderDir, $context; if (!isset($ret)) {$ret="";}; $slash = $serverType == strpos($path,"\\")>-1 ? "\\" : "/"; while($f = readdir($fp)) { @@ -124,9 +124,15 @@ if (startTab!=top.ICEcoder.selectedTab) { } else if(stristr(toUTF8noBOM(file_get_contents($fullPath,false,$context),false), $q)) { $bFile = false; $foundInSelFile = false; + // Exclude banned files for ($i=0;$i