Ensure return from this method is a string
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 28 Jan 2011 18:38:05 +0000 (11:38 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 28 Jan 2011 20:14:47 +0000 (13:14 -0700)
framework/Imap_Client/lib/Horde/Imap/Client/Utf7imap.php

index b54f997..670d8fd 100644 (file)
@@ -165,7 +165,7 @@ class Horde_Imap_Client_Utf7imap
     {
         /* No need to do conversion if all chars are in US-ASCII range. */
         if (!preg_match('/[\x80-\xff]/', $str)) {
-            return $str;
+            return strval($str);
         }
 
         /* Try mbstring, if available, which should be faster. Don't use the