From 1252eede013d801a7ea0c8490e6f5f6b9fb08d96 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 29 Mar 2017 00:34:33 +0200 Subject: [PATCH] Remove verbose error message There's no need to have this included in the error message. Signed-off-by: Lukas Reschke --- lib/private/Files/Storage/Local.php | 5 +++-- 1 file 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); } /**