Merge pull request #11764 from nextcloud/fix/11637/sharedstorageroot
Do not pass '.' along as path
This commit is contained in:
commit
1fcb5db266
|
@ -27,6 +27,7 @@ namespace OC\Files\Storage\Wrapper;
|
||||||
|
|
||||||
use OC\Files\Cache\Wrapper\CacheJail;
|
use OC\Files\Cache\Wrapper\CacheJail;
|
||||||
use OC\Files\Cache\Wrapper\JailPropagator;
|
use OC\Files\Cache\Wrapper\JailPropagator;
|
||||||
|
use OC\Files\Filesystem;
|
||||||
use OCP\Files\Storage\IStorage;
|
use OCP\Files\Storage\IStorage;
|
||||||
use OCP\Lock\ILockingProvider;
|
use OCP\Lock\ILockingProvider;
|
||||||
|
|
||||||
|
@ -56,7 +57,7 @@ class Jail extends Wrapper {
|
||||||
if ($path === '') {
|
if ($path === '') {
|
||||||
return $this->rootPath;
|
return $this->rootPath;
|
||||||
} else {
|
} else {
|
||||||
return $this->rootPath . '/' . $path;
|
return Filesystem::normalizePath($this->rootPath . '/' . $path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue