Skip to content

Commit

Permalink
Fix regression in compressMessageSet()
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Apr 17, 2018
1 parent 9f91018 commit c69b851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3837,12 +3837,12 @@ public static function compressMessageSet($messages, $force=false)
if (!is_array($messages)) {
// if less than 255 bytes long, let's not bother
if (!$force && strlen($messages) < 255) {
return preg_match('/[^0-9:,]/', $messages) ? 'INVALID' : $messages;
return preg_match('/[^0-9:,*]/', $messages) ? 'INVALID' : $messages;
}

// see if it's already been compressed
if (strpos($messages, ':') !== false) {
return preg_match('/[^0-9:,]/', $messages) ? 'INVALID' : $messages;
return preg_match('/[^0-9:,*]/', $messages) ? 'INVALID' : $messages;
}

// separate, then sort
Expand Down

0 comments on commit c69b851

Please sign in to comment.