Skip to content

Commit

Permalink
Fix PHP warnings on dummy QUOTA responses in Courier-IMAP 4.17.1 (#6374)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Aug 6, 2018
1 parent b615c22 commit 988ed7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ CHANGELOG Roundcube Webmail
- Fix touch event issue on messages list in IE/Edge (#5781)
- Fix so links over images are not removed in plain text signatures converted from HTML (#4473)
- Fix various issues when downloading files with names containing non-ascii chars, use RFC 2231 (#5772)
- Fix PHP warnings on dummy QUOTA responses in Courier-IMAP 4.17.1 (#6374)

RELEASE 1.3.7
-------------
Expand Down
5 changes: 5 additions & 0 deletions program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3131,6 +3131,11 @@ public function getQuota($mailbox = null)
list(, , $quota_root) = $this->tokenizeResponse($line, 3);

$quotas = $this->tokenizeResponse($line, 1);

if (empty($quotas)) {
continue;
}

foreach (array_chunk($quotas, 3) as $quota) {
list($type, $used, $total) = $quota;
$type = strtolower($type);
Expand Down

0 comments on commit 988ed7e

Please sign in to comment.