Skip to content

Commit ef2f66b

Browse files
committed
Merge branch '2.8' into 3.4
* 2.8: Remove redundant path check
2 parents 636eb9e + 5d6473b commit ef2f66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ public function getRelativeUriForPath($path)
11861186
}
11871187

11881188
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
1189-
$targetDirs = explode('/', isset($path[0]) && '/' === $path[0] ? substr($path, 1) : $path);
1189+
$targetDirs = explode('/', substr($path, 1));
11901190
array_pop($sourceDirs);
11911191
$targetFile = array_pop($targetDirs);
11921192

0 commit comments

Comments
 (0)