Skip to content

Commit

Permalink
- fix uudecode (skip "begin XXX filename" header)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed May 14, 2009
1 parent db33ffe commit b31a0af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/imap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,7 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part='', $encoding=NULL, $
else
$result .= quoted_printable_decode($line);
} else if ($mode == 3) {
if ($line == 'end')
if ($line == 'end' || preg_match('/^begin\s+[0-7]+\s+.+$/', $line))
continue;
if ($file)
fwrite($file, convert_uudecode($line));
Expand Down

0 comments on commit b31a0af

Please sign in to comment.