mirror of
https://github.com/nextcloud/server.git
synced 2026-03-02 13:31:14 -05:00
Merge pull request #4129 from nextcloud/remove-verbose-error-message
Remove verbose error message
This commit is contained in:
commit
784e06073b
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue