Skip to content

Commit

Permalink
Relax uuencode header regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Aug 13, 2023
1 parent 64eb733 commit 35d7b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3064,7 +3064,7 @@ protected static function decodeContent($chunk, $mode, $is_last = false, &$prev
}

$chunk = preg_replace(
['/\r?\n/', '/(^|\n)end$/', '/^begin\s+[0-7]{3}\s+[^\n]+\n/'],
['/\r?\n/', '/(^|\n)end$/', '/^begin\s+[0-7]{3,4}\s+[^\n]+\n/'],
["\n", '', ''],
$chunk
);
Expand Down

0 comments on commit 35d7b1f

Please sign in to comment.