mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Postfix comparison to check path
Establish a stringExtra value of a slash or nothing depending on wether we are considering the root level or not When comparing the folder against the selectedFile array value, postfix both with a slash (could be any char though). This is to eliminate path mismatches.
This commit is contained in:
@@ -129,7 +129,8 @@ if (startTab!=top.ICEcoder.selectedTab) {
|
||||
}
|
||||
$findPath = str_replace($base,"",$fullPath);
|
||||
for ($i=0;$i<count($selectedFiles);$i++) {
|
||||
if (strpos($findPath,str_replace("|","/",$selectedFiles[$i]))===0) {
|
||||
$stringExtra = $selectedFiles[$i] != "|" ? "/" : "";
|
||||
if (strpos($findPath.$stringExtra,str_replace("|","/",$selectedFiles[$i]).$stringExtra)===0) {
|
||||
$foundInSelFile = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user