Lines 306-316
Link Here
|
306 |
for (int i = 0, length = this.paths.length; i < length; i++) { |
306 |
for (int i = 0, length = this.paths.length; i < length; i++) { |
307 |
String scopePath = this.paths[i]; |
307 |
String scopePath = this.paths[i]; |
308 |
if (scopePath == null) continue; |
308 |
if (scopePath == null) continue; |
309 |
if (scopePath.length() == 0) |
309 |
if (encloses(this.containerPaths[i] + '/' + scopePath, relativePath, i)) |
310 |
scopePath = this.containerPaths[i]; |
|
|
311 |
else |
312 |
scopePath = this.containerPaths[i] + '/' + scopePath; |
313 |
if (encloses(scopePath, relativePath, i)) |
314 |
return i; |
310 |
return i; |
315 |
} |
311 |
} |
316 |
return -1; |
312 |
return -1; |
Lines 331-336
Link Here
|
331 |
return path.equals(scopePath); |
327 |
return path.equals(scopePath); |
332 |
} |
328 |
} |
333 |
if (path.startsWith(scopePath)) { |
329 |
if (path.startsWith(scopePath)) { |
|
|
330 |
if (scopePath.charAt(scopeLength-1) == '/') scopeLength--; |
334 |
return path.charAt(scopeLength) == '/'; |
331 |
return path.charAt(scopeLength) == '/'; |
335 |
} |
332 |
} |
336 |
} else { |
333 |
} else { |