Changeset 2280 in subversion
- Timestamp:
- Feb 6, 2009 2:04:45 PM (4 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/lib/imap.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r2277 r2280 6 6 - Fix pressing select all/unread multiple times (#1485723) 7 7 - Fix selecting all unread does not honor new messages (#1485724) 8 - Fix some base64 encoded attachments handling (#1485725) 8 9 9 10 2009/02/05 (alec) -
trunk/roundcubemail/program/lib/imap.inc
r2273 r2280 2509 2509 $sizeStr = substr($line, $from, $len); 2510 2510 $bytes = (int)$sizeStr; 2511 2511 $prev = ''; 2512 2512 2513 while ($bytes > 0) { 2513 2514 $line = iil_ReadLine($fp, 1024); … … 2519 2520 $bytes -= strlen($line); 2520 2521 2522 $line = rtrim($line, "\t\r\n\0\x0B"); 2523 2521 2524 if ($mode == 1) { 2522 2525 if ($file) 2523 fwrite($file, rtrim($line, "\t\r\n\0\x0B"). "\n");2526 fwrite($file, $line . "\n"); 2524 2527 else 2525 $result .= rtrim($line, "\t\r\n\0\x0B"). "\n";2528 $result .= $line . "\n"; 2526 2529 } else if ($mode == 2) { 2527 echo rtrim($line, "\t\r\n\0\x0B"). "\n";2530 echo $line . "\n"; 2528 2531 } else if ($mode == 3) { 2532 // create chunks with proper length for base64 decoding 2533 $line = $prev.$line; 2534 $length = strlen($line); 2535 if ($length % 4) { 2536 $length = floor($length / 4) * 4; 2537 $prev = substr($line, $length); 2538 $line = substr($line, 0, $length); 2539 } 2540 else 2541 $prev = ''; 2542 2529 2543 if ($file) 2530 2544 fwrite($file, base64_decode($line));
Note: See TracChangeset
for help on using the changeset viewer.
