]> source.dussan.org Git - nextcloud-server.git/commitdiff
Revert "[stable10] Only use realpath for real directories (#26060)" 1532/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 26 Sep 2016 22:12:23 +0000 (00:12 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2016 22:12:23 +0000 (00:12 +0200)
lib/private/Files/Storage/Local.php

index 0d63fd46ecca8587cb82de8b79a3330c78500c11..19674fc9413745a86a1da7b009307e4a0849e81a 100644 (file)
@@ -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 .= '/';
                }