aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Files/Storage/Wrapper/Jail.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php
index 7350c104ba8..40ec3836b3a 100644
--- a/lib/private/Files/Storage/Wrapper/Jail.php
+++ b/lib/private/Files/Storage/Wrapper/Jail.php
@@ -56,11 +56,7 @@ class Jail extends Wrapper {
}
public function getUnjailedPath($path) {
- if ($path === '') {
- return $this->rootPath;
- } else {
- return Filesystem::normalizePath($this->rootPath . '/' . $path);
- }
+ return Filesystem::normalizePath($this->rootPath . '/' . $path);
}
/**