This commit is contained in:
Fabien Potencier 2015-10-13 17:24:19 +02:00
parent 7bb394e2c4
commit 791b1247f9
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ class Filesystem
$depth = count($startPathArr) - $index;
// When we need to traverse from the start, and we are starting from a root path, don't add '../'
if ($startPath[0] == '/' && $index == 0 && $depth == 1) {
if ('/' === $startPath[0] && 0 === $index && 1 === $depth) {
$traverser = '';
} else {
// Repeated "../" for each level need to reach the common path