mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #11770 from nextcloud/backport/11764/stable14
[14] Normalize getUnjailedPath
This commit is contained in:
commit
db03468911
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ namespace OC\Files\Storage\Wrapper;
|
|||
|
||||
use OC\Files\Cache\Wrapper\CacheJail;
|
||||
use OC\Files\Cache\Wrapper\JailPropagator;
|
||||
use OC\Files\Filesystem;
|
||||
use OCP\Files\Storage\IStorage;
|
||||
use OCP\Lock\ILockingProvider;
|
||||
|
||||
|
|
@ -56,7 +57,7 @@ class Jail extends Wrapper {
|
|||
if ($path === '') {
|
||||
return $this->rootPath;
|
||||
} else {
|
||||
return $this->rootPath . '/' . $path;
|
||||
return Filesystem::normalizePath($this->rootPath . '/' . $path);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue