Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
@@ -3331,7 +3331,7 @@ abstract class elFinderVolumeDriver
}
}
if (empty($file['url']) && $this->URL) {
$path = str_replace($this->separator, '/', substr($this->decode($hash), strlen(rtrim($this->root, '/' . $this->separator)) + 1));
$path = str_replace($this->separator, '/', substr($this->decode($hash), strlen(trim($this->root, '/' . $this->separator))));
if ($this->encoding) {
$path = $this->convEncIn($path, true);
}
@@ -3462,9 +3462,8 @@ abstract class elFinderVolumeDriver
$tempPath = elFinder::getStaticVar('commonTempPath');
} else if (function_exists('sys_get_temp_dir')) {
$tempPath = sys_get_temp_dir();
} else if ($this->tmbPathWritable) {
$tempPath = $this->tmbPath;
}
if ($tempPath && DIRECTORY_SEPARATOR !== '/') {
$tempPath = str_replace('/', DIRECTORY_SEPARATOR, $tempPath);
}
@@ -5329,7 +5328,15 @@ abstract class elFinderVolumeDriver
$this->rmTmb($stat); // can not do rmTmb() after _move()
$this->clearcache();
if ($res = $this->convEncOut($this->_move($this->convEncIn($src), $this->convEncIn($dst), $this->convEncIn($name)))) {
$res = $this->convEncOut($this->_move($this->convEncIn($src), $this->convEncIn($dst), $this->convEncIn($name)));
// if moving it didn't work try to copy / delete
if (!$res) {
if ($this->copy($src, $dst, $name)) {
$res = $this->remove($src);
}
}
if ($res) {
$this->clearstatcache();
if ($stat['mime'] === 'directory') {
$this->updateSubdirsCache($dst, true);