|
|
|
|
@ -68,6 +68,14 @@ class CacheJail extends CacheWrapper { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected function getUnjailedSourcePath(string $path): string { |
|
|
|
|
if ($path === '') { |
|
|
|
|
return $this->getGetUnjailedRoot(); |
|
|
|
|
} else { |
|
|
|
|
return $this->getGetUnjailedRoot() . '/' . ltrim($path, '/'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param string $path |
|
|
|
|
* @param null|string $root |
|
|
|
|
@ -189,7 +197,7 @@ class CacheJail extends CacheWrapper { |
|
|
|
|
* @return array [$storageId, $internalPath] |
|
|
|
|
*/ |
|
|
|
|
protected function getMoveInfo($path) { |
|
|
|
|
return [$this->getNumericStorageId(), $this->getSourcePath($path)]; |
|
|
|
|
return [$this->getNumericStorageId(), $this->getUnjailedSourcePath($path)]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|