diff options
-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); } /** |