diff options
author | Joas Schilling <coding@schilljs.com> | 2017-03-29 10:01:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-29 10:01:17 +0200 |
commit | 784e06073bc683bb4007c968ad59592f79367ba5 (patch) | |
tree | 7d435043e604dfcaacbc5b24cf7d0ec818a83156 | |
parent | ac7ca1c3a83f63a97b0fe94aed638160be9b9894 (diff) | |
parent | 49ba822feff7712b7dd6a125d46daba012069a4e (diff) | |
download | nextcloud-server-784e06073bc683bb4007c968ad59592f79367ba5.tar.gz nextcloud-server-784e06073bc683bb4007c968ad59592f79367ba5.zip |
Merge pull request #4129 from nextcloud/remove-verbose-error-message
Remove verbose error message
-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 80d48680be1..5597c0c64cc 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -369,9 +369,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); } /** |