Skip to content

Commit 7a2a4d9

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: Remove redundant path check
2 parents c48ee0b + ef2f66b commit 7a2a4d9

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
@@ -1059,7 +1059,7 @@ public function getRelativeUriForPath($path)
10591059
}
10601060

10611061
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
1062-
$targetDirs = explode('/', isset($path[0]) && '/' === $path[0] ? substr($path, 1) : $path);
1062+
$targetDirs = explode('/', substr($path, 1));
10631063
array_pop($sourceDirs);
10641064
$targetFile = array_pop($targetDirs);
10651065

0 commit comments

Comments
 (0)