diff options
author | alecpl <alec@alec.pl> | 2009-05-14 06:39:10 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-05-14 06:39:10 +0000 |
commit | b31a0af1f4da941542e2639bb1ea2e4620d0a1db (patch) | |
tree | d6a2f05a36776809d5a0ea3e18a1489b17e6b13b /program | |
parent | db33ffebc70b722c2c5f5d1f928e3a469140c77a (diff) |
- fix uudecode (skip "begin XXX filename" header)
Diffstat (limited to 'program')
-rw-r--r-- | program/lib/imap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc index 61ba22414..1502064a8 100644 --- a/program/lib/imap.inc +++ b/program/lib/imap.inc @@ -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)); |