diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-09-27 00:12:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-27 00:12:23 +0200 |
commit | 85d7b90b24e8a05176cac8a8b932f039be994966 (patch) | |
tree | d8477e88f2441c5e65810048e7983a06c957d960 /lib/private | |
parent | ffaa2512f3e5db9d45da8889abd147c801eceb58 (diff) | |
download | nextcloud-server-85d7b90b24e8a05176cac8a8b932f039be994966.tar.gz nextcloud-server-85d7b90b24e8a05176cac8a8b932f039be994966.zip |
Revert "[stable10] Only use realpath for real directories (#26060)"
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Files/Storage/Local.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 0d63fd46ecc..19674fc9413 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -54,12 +54,7 @@ class Local extends \OC\Files\Storage\Common { throw new \InvalidArgumentException('No data directory set for local storage'); } $this->datadir = $arguments['datadir']; - // some crazy code uses a local storage on root... - if ($this->datadir === '/') { - $this->realDataDir = $this->datadir; - } else { - $this->realDataDir = rtrim(realpath($this->datadir), '/') . '/'; - } + $this->realDataDir = rtrim(realpath($this->datadir), '/') . '/'; if (substr($this->datadir, -1) !== '/') { $this->datadir .= '/'; } |