diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-03-29 00:34:33 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-04-05 23:14:41 +0200 |
commit | 1252eede013d801a7ea0c8490e6f5f6b9fb08d96 (patch) | |
tree | b7a1c5dd1487f16fae3207dec12ef73929601b35 | |
parent | b0ab3b628a16a70e8bad350d3b5ee0aeab36cc11 (diff) | |
download | nextcloud-server-1252eede013d801a7ea0c8490e6f5f6b9fb08d96.tar.gz nextcloud-server-1252eede013d801a7ea0c8490e6f5f6b9fb08d96.zip |
Remove verbose error message
There's no need to have this included in the error message.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-rw-r--r-- | lib/private/Files/Storage/Local.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 0d63fd46ecc..435d49841ee 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -372,9 +372,10 @@ class Local extends \OC\Files\Storage\Common { } if (substr($realPath, 0, $this->dataDirLength) === $this->realDataDir) { return $fullPath; - } else { - throw new ForbiddenException("Following symlinks is not allowed ('$fullPath' -> '$realPath' not inside '{$this->realDataDir}')", false); } + + \OCP\Util::writeLog('core', "Following symlinks is not allowed ('$fullPath' -> '$realPath' not inside '{$this->realDataDir}')", \OCP\Util::ERROR); + throw new ForbiddenException('Following symlinks is not allowed', false); } /** |