From 85d7b90b24e8a05176cac8a8b932f039be994966 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 27 Sep 2016 00:12:23 +0200 Subject: [PATCH] Revert "[stable10] Only use realpath for real directories (#26060)" --- lib/private/Files/Storage/Local.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 0d63fd46ec..19674fc941 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 .= '/'; }