Merge branch '2.8' into 3.4
* 2.8: Remove redundant path check
This commit is contained in:
commit
ef2f66b28f
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user