Remove \r from debug output
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Oct 2009 04:43:36 +0000 (22:43 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Oct 2009 04:43:36 +0000 (22:43 -0600)
framework/Imap_Client/lib/Horde/Imap/Client/Socket.php

index a6d546b..53bfd1b 100644 (file)
@@ -3485,7 +3485,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base
                 rewind($data);
             }
 
-            fwrite($this->_debug, 'S (' . microtime(true) . '): ' . ($binary ? '[BINARY DATA - ' . $len . ' bytes]' : ($stream ? stream_get_contents($data): $data)));
+            fwrite($this->_debug, 'S (' . microtime(true) . '): ' . ($binary ? '[BINARY DATA - ' . $len . ' bytes]' : rtrim($stream ? stream_get_contents($data): $data)) . "\n");
         }
 
         return is_null($len) ? rtrim($data) : $data;