Merge pull request #847 from owncloud/webdav-quota-fix-exception

throwing InsufficientStorage in case the quota is reached
This commit is contained in:
Thomas Müller 2012-12-12 14:02:45 -08:00
commit 4018ba0654
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin {
}
list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri);
if ($length > OC_Filesystem::free_space($parentUri)) {
throw new Sabre_DAV_Exception('Quota exceeded. File is too big.');
throw new Sabre_DAV_Exception_InsufficientStorage();
}
}
return true;