Changeset eebfa5e in github
- Timestamp:
- May 25, 2009 7:34:51 AM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 1e10700
- Parents:
- 12f0572
- File:
-
- 1 edited
-
program/lib/imap.inc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/lib/imap.inc
raa320ed reebfa5e 2397 2397 $bytes -= strlen($line); 2398 2398 2399 $line = rtrim($line, "\t\r\n\0\x0B");2400 2401 2399 if ($mode == 1) { 2400 $line = rtrim($line, "\t\r\n\0\x0B"); 2402 2401 // create chunks with proper length for base64 decoding 2403 2402 $line = $prev.$line; … … 2418 2417 $result .= base64_decode($line); 2419 2418 } else if ($mode == 2) { 2420 $line .= $line[sizeof($line)-1] != '=' ? "\n" : '';2419 $line = rtrim($line, "\t\r\0\x0B"); 2421 2420 if ($file) 2422 2421 fwrite($file, quoted_printable_decode($line)); … … 2426 2425 $result .= quoted_printable_decode($line); 2427 2426 } else if ($mode == 3) { 2427 $line = rtrim($line, "\t\r\n\0\x0B"); 2428 2428 if ($line == 'end' || preg_match('/^begin\s+[0-7]+\s+.+$/', $line)) 2429 2429 continue; … … 2435 2435 $result .= convert_uudecode($line); 2436 2436 } else { 2437 $line = rtrim($line, "\t\r\n\0\x0B"); 2437 2438 if ($file) 2438 2439 fwrite($file, $line . "\n"); … … 2444 2445 } 2445 2446 } 2447 2446 2448 // read in anything up until last line 2447 2449 if (!$end)
Note: See TracChangeset
for help on using the changeset viewer.
