We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c48ee0b + ef2f66b commit 7a2a4d9Copy full SHA for 7a2a4d9
src/Symfony/Component/HttpFoundation/Request.php
@@ -1059,7 +1059,7 @@ public function getRelativeUriForPath($path)
1059
}
1060
1061
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
1062
- $targetDirs = explode('/', isset($path[0]) && '/' === $path[0] ? substr($path, 1) : $path);
+ $targetDirs = explode('/', substr($path, 1));
1063
array_pop($sourceDirs);
1064
$targetFile = array_pop($targetDirs);
1065
0 commit comments