mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
src build elFinder-2.1-a365810
This commit is contained in:
@@ -1884,7 +1884,7 @@ abstract class elFinderVolumeDriver {
|
||||
return $this->setError(elFinder::ERROR_LOCKED, $this->path($stat['hash']));
|
||||
}
|
||||
// target is entity file of alias
|
||||
if ($volume == $this && ($test == @$file['target'] || $test == $this->decode($src))) {
|
||||
if ($volume === $this && ((isset($file['target']) && $test == $file['target']) || $test == $this->decode($src))) {
|
||||
return $this->setError(elFinder::ERROR_REPLACE, $errpath);
|
||||
}
|
||||
// remove existed file
|
||||
@@ -1897,7 +1897,7 @@ abstract class elFinderVolumeDriver {
|
||||
}
|
||||
|
||||
// copy/move inside current volume
|
||||
if ($volume == $this) {
|
||||
if ($volume === $this) { // changing == operand to === fixes issue #1285 - Paul Canning 24/03/2016
|
||||
$source = $this->decode($src);
|
||||
// do not copy into itself
|
||||
if ($this->inpathCE($destination, $source)) {
|
||||
|
||||
Reference in New Issue
Block a user