diff --git a/lib/multiple-results.php b/lib/multiple-results.php index 2d9514a..449929b 100644 --- a/lib/multiple-results.php +++ b/lib/multiple-results.php @@ -115,7 +115,7 @@ if (startTab!=top.ICEcoder.selectedTab) { $fp = opendir($path); global $r, $ICEcoder, $serverType, $selectedFiles; if (!isset($ret)) {$ret="";}; - $slash = $serverType == "Windows" ? "\\" : "/"; + $slash = $serverType == strpos($path,"\\")>-1 ? "\\" : "/"; while($f = readdir($fp)) { if(preg_match("#^\.+$#", $f)) continue; $fullPath = $path.$slash.$f; @@ -138,7 +138,7 @@ if (startTab!=top.ICEcoder.selectedTab) { $ret .= ""; $ret .= str_replace($base,"",$fullPath)."