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.
1 parent d33e245 commit 10795cfCopy full SHA for 10795cf
src/Symfony/Component/HttpFoundation/Request.php
@@ -1120,7 +1120,7 @@ public function getRelativeUriForPath($path)
1120
}
1121
1122
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
1123
- $targetDirs = explode('/', isset($path[0]) && '/' === $path[0] ? substr($path, 1) : $path);
+ $targetDirs = explode('/', substr($path, 1));
1124
array_pop($sourceDirs);
1125
$targetFile = array_pop($targetDirs);
1126
0 commit comments