8000
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 636eb9e + 5d6473b commit ef2f66bCopy full SHA for ef2f66b
src/Symfony/Component/HttpFoundation/Request.php
@@ -1186,7 +1186,7 @@ public function getRelativeUriForPath($path)
1186
}
1187
1188
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
1189
- $targetDirs = explode('/', isset($path[0]) && '/' === $path[0] ? substr($path, 1) : $path);
+ $targetDirs = explode('/', substr($path, 1));
1190
array_pop($sourceDirs);
1191
$targetFile = array_pop($targetDirs);
1192
0 commit comments