Merge branch '3.4' into 4.1
* 3.4: Remove redundant path check
This commit is contained in:
commit
7a2a4d94bf
@ -1059,7 +1059,7 @@ class Request
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
|
$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);
|
array_pop($sourceDirs);
|
||||||
$targetFile = array_pop($targetDirs);
|
$targetFile = array_pop($targetDirs);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user