summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-04 09:05:42 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-04 09:05:42 +0100
commitd3e7f92d88b3ac6d6f190996e36a9ff18c5369d7 (patch)
tree1e2ef6e05b0a9046378ab9cbf46e74606c91d9f5 /program
parente7c1aad83208b343634a1b857b53474c97a74f61 (diff)
Smarter overquota error detection (known error strings are:
"Quota exceeded" and "quotum would exceed") (#1484164)
Diffstat (limited to 'program')
-rw-r--r--program/include/rcmail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 30d1fe84c..192fb9f95 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1821,7 +1821,7 @@ class rcmail extends rcube
$error = 'errornoperm';
}
// try to detect full mailbox problem and display appropriate message
- else if (stripos($err_str, 'Quota exceeded') !== false) {
+ else if (stripos($err_str, 'quota') !== false && stripos($err_str, 'exceed') !== false) {
$error = 'erroroverquota';
}
else {