Merge pull request #11764 from nextcloud/fix/11637/sharedstorageroot

Do not pass '.' along as path
This commit is contained in:
Roeland Jago Douma 2018-10-11 20:18:44 +02:00 committed by GitHub
commit 1fcb5db266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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