Merge pull request #11770 from nextcloud/backport/11764/stable14

[14] Normalize getUnjailedPath
This commit is contained in:
Roeland Jago Douma 2018-10-11 20:19:10 +02:00 committed by GitHub
commit db03468911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}