Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdgaras L <edgaras.lukosevicius@gmail.com>2018-05-05 13:48:15 +0300
committerAleksander Machniak <alec@alec.pl>2018-05-05 13:50:28 +0300
commit7dfbb62b78e3949daa8e49db9ebed46ddd8f964e (patch)
tree7ee4891897fce96d2e49116af91bac83b5b13b79 /program
parent8477b881e5515d6520eb64f760fb49d586fb5689 (diff)
Parse all quotas from GETQUOTAROOT (#6280)
Diffstat (limited to 'program')
-rw-r--r--program/lib/Roundcube/rcube_imap_generic.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php
index 3899b235e..61564bb1a 100644
--- a/program/lib/Roundcube/rcube_imap_generic.php
+++ b/program/lib/Roundcube/rcube_imap_generic.php
@@ -3125,8 +3125,9 @@ class rcube_imap_generic
if (preg_match('/^\* QUOTA /', $line)) {
list(, , $quota_root) = $this->tokenizeResponse($line, 3);
- while ($line) {
- list($type, $used, $total) = $this->tokenizeResponse($line, 1);
+ $quotas = $this->tokenizeResponse($line, 1);
+ foreach (array_chunk($quotas, 3) as $quota) {
+ list($type, $used, $total) = $quota;
$type = strtolower($type);
if ($type && $total) {