summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-03-29 00:34:33 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-03-29 00:34:33 +0200
commit49ba822feff7712b7dd6a125d46daba012069a4e (patch)
tree9d1cc360186f9a6add805f4178fdd06970688a58
parent2c682ad34d13885ec1c0c784c2140fedfcf9c4cb (diff)
downloadnextcloud-server-49ba822feff7712b7dd6a125d46daba012069a4e.tar.gz
nextcloud-server-49ba822feff7712b7dd6a125d46daba012069a4e.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.php5
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);
}
/**