Skip to content

Commit

Permalink
Merge pull request #11770 from nextcloud/backport/11764/stable14
Browse files Browse the repository at this point in the history
[14] Normalize getUnjailedPath
  • Loading branch information
rullzer authored Oct 11, 2018
2 parents feb8a79 + 18c35e6 commit db03468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/Files/Storage/Wrapper/Jail.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

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;

Expand Down Expand Up @@ -56,7 +57,7 @@ public function getUnjailedPath($path) {
if ($path === '') {
return $this->rootPath;
} else {
return $this->rootPath . '/' . $path;
return Filesystem::normalizePath($this->rootPath . '/' . $path);
}
}

Expand Down

0 comments on commit db03468

Please sign in to comment.