Skip to content

Commit

Permalink
Fixed: Unmatched negative integer in maildirsize
Browse files Browse the repository at this point in the history
Typo
  • Loading branch information
nuxwin committed Apr 7, 2017
1 parent a46653b commit f8cf60b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/library/Functions/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ function parseMaildirsize($maildirsizeFilePath)
}

# Parse byte count and file count
if (preg_match('/^\s*(\d+)\s+(\d+)\s*$/', $line, $m)) {
if (preg_match('/^\s*(-?\d+)\s+(-?\d+)\s*$/', $line, $m)) {
$maildirsize['BYTE_COUNT'] += $m[1];
$maildirsize['FILE_COUNT'] += $m[2];
}
Expand Down
2 changes: 1 addition & 1 deletion gui/public/client/mail_accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function _client_generateMailAccountsList($tpl, $mainDmnId)
($dmnProps['mail_quota'] > 0) ? bytesHuman($dmnProps['mail_quota'], NULL, 0) : tr('Unlimited')
);
} else {
$mailQuotaInfo = tr('Unknown');
$mailQuotaInfo = tr('Unavailable');
}
} else {
$mailQuotaInfo = tr('N/A');
Expand Down

0 comments on commit f8cf60b

Please sign in to comment.