Merge branch '2.8' into 3.4

* 2.8:
  Remove redundant path check
This commit is contained in:
Fabien Potencier 2018-10-03 10:48:18 +02:00
commit ef2f66b28f

View File

@ -1186,7 +1186,7 @@ class Request
}
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
$targetDirs = explode('/', isset($path[0]) && '/' === $path[0] ? substr($path, 1) : $path);
$targetDirs = explode('/', substr($path, 1));
array_pop($sourceDirs);
$targetFile = array_pop($targetDirs);