summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-12-12 14:02:45 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2012-12-12 14:02:45 -0800
commit4018ba065401d8f02a1d5cee9b82ab3397795b7f (patch)
tree0e89689d5b5ebfbab1f9f76c712f51608764cb32
parentb8b64d6ffc0645f5806d7120e337c2652e49c2e7 (diff)
parent84420035dfa1176a156b837e55bc3ac4ca946840 (diff)
downloadnextcloud-server-4018ba065401d8f02a1d5cee9b82ab3397795b7f.tar.gz
nextcloud-server-4018ba065401d8f02a1d5cee9b82ab3397795b7f.zip
Merge pull request #847 from owncloud/webdav-quota-fix-exception
throwing InsufficientStorage in case the quota is reached
-rw-r--r--lib/connector/sabre/quotaplugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connector/sabre/quotaplugin.php b/lib/connector/sabre/quotaplugin.php
index a56a65ad863..fbbb4a3cf6f 100644
--- a/lib/connector/sabre/quotaplugin.php
+++ b/lib/connector/sabre/quotaplugin.php
@@ -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;