chore(quota): hide available space from error

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
Benjamin Gaussorgues 2026-02-09 11:58:30 +01:00 committed by backportbot[bot]
parent cae29df077
commit 5cea3fe066

View file

@ -258,8 +258,8 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin {
if ($length > $freeSpace) {
$msg = $isDir
? "Insufficient space in $normalizedPath. $freeSpace available. Cannot create directory"
: "Insufficient space in $normalizedPath, $length required, $freeSpace available";
? "Insufficient space in $normalizedPath. Cannot create directory"
: "Insufficient space in $normalizedPath";
throw new InsufficientStorage($msg);
}