Fix removal of superfluous whitespace
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 4 Mar 2010 21:30:02 +0000 (14:30 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 4 Mar 2010 22:25:16 +0000 (15:25 -0700)
framework/Imap_Client/lib/Horde/Imap/Client/Utils.php

index c00b34b..8232348 100644 (file)
@@ -189,7 +189,7 @@ class Horde_Imap_Client_Utils
         $str = Horde_Mime::decode($str, 'UTF-8');
 
         // Rule 1b: Remove superfluous whitespace.
-        $str = preg_replace("/\s{2,}/", '', $str);
+        $str = preg_replace("/\s{2,}/", ' ', $str);
 
         if (!$str) {
             return '';