[Svn] r3006 - trunk/roundcubemail/program/lib

trac at roundcube.net trac at roundcube.net
Fri Oct 2 09:22:33 CEST 2009


Author: alec
Date: 2009-10-02 02:22:33 -0500 (Fri, 02 Oct 2009)
New Revision: 3006

Modified:
   trunk/roundcubemail/program/lib/imap.inc
Log:
- fix corrupted attachments on forward (#1486193)


Modified: trunk/roundcubemail/program/lib/imap.inc
===================================================================
--- trunk/roundcubemail/program/lib/imap.inc	2009-10-01 08:31:47 UTC (rev 3005)
+++ trunk/roundcubemail/program/lib/imap.inc	2009-10-02 07:22:33 UTC (rev 3006)
@@ -2270,7 +2270,7 @@
 					}
 					else
 						$prev = '';
-
+						
 					if ($file)
 						fwrite($file, base64_decode($line));
             				else if ($print)
@@ -2306,7 +2306,6 @@
 				}
         		}
     		}
-
 	        // read in anything up until last line
 		if (!$end)
 			do {
@@ -2314,18 +2313,17 @@
 			} while (!iil_StartsWith($line, $key, true));
 
     		if ($result) {
-	    		$result = rtrim($result, "\t\r\n\0\x0B");
 			if ($file) {
 				fwrite($file, $result);
 			} else if ($print) {
 				echo $result;
 			} else
-				return $result; // substr($result, 0, strlen($result)-1);
+				return $result;
 
 			return true;
     		}
 	}
-    
+
 	return false;
 }
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list