Don't trim literal data.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 18 Nov 2008 08:14:59 +0000 (01:14 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 18 Nov 2008 08:16:11 +0000 (01:16 -0700)
Trimming this breaks, e.g., determining the canonical contents of a body
MIME section when verifying a PGP signature.

framework/Imap_Client/lib/Horde/Imap/Client/Socket.php

index 87aeff6..dcfb002 100644 (file)
@@ -3096,7 +3096,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base
                         while ($literal_len) {
                             $data_read = fread($this->_stream, min($literal_len, 8192));
                             $literal_len -= strlen($data_read);
-                            $line .= rtrim($data_read);
+                            $line .= $data_read;
                         }
                     }