[Svn] r4514 - in trunk/roundcubemail: . program/include

trac at roundcube.net trac at roundcube.net
Wed Feb 9 13:01:29 CET 2011


Author: alec
Date: 2011-02-09 06:01:29 -0600 (Wed, 09 Feb 2011)
New Revision: 4514

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/include/rcube_imap_generic.php
Log:
- Add workaround for DBMail's bug http://www.dbmail.org/mantis/view.php?id=881 (#1487766)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2011-02-09 11:48:27 UTC (rev 4513)
+++ trunk/roundcubemail/CHANGELOG	2011-02-09 12:01:29 UTC (rev 4514)
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Add workaround for DBMail's bug http://www.dbmail.org/mantis/view.php?id=881 (#1487766)
 - Use IMAP's ID extension (RFC2971) to print more info into debug log
 - Security: add optional referer check to prevent CSRF in GET requests
 - Fix email_dns_check setting not used for identities/contacts (#1487740)

Modified: trunk/roundcubemail/program/include/rcube_imap_generic.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_imap_generic.php	2011-02-09 11:48:27 UTC (rev 4513)
+++ trunk/roundcubemail/program/include/rcube_imap_generic.php	2011-02-09 12:01:29 UTC (rev 4514)
@@ -3313,10 +3313,11 @@
         else if ($string === '') {
             return '""';
         }
+        // need quoted-string? find special chars: SP, CTL, (, ), {, %, *, ", \, ]
+        // plus [ character as a workaround for DBMail's bug (#1487766)
         else if ($force_quotes ||
-            preg_match('/([\x00-\x20\x28-\x29\x7B\x25\x2A\x22\x5C\x5D\x7F]+)/', $string)
+            preg_match('/([\x00-\x20\x28-\x29\x7B\x25\x2A\x22\x5B\x5C\x5D\x7F]+)/', $string)
         ) {
-            // string: special chars: SP, CTL, (, ), {, %, *, ", \, ]
             return '"' . strtr($string, array('"'=>'\\"', '\\' => '\\\\')) . '"';
         }
 

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



More information about the Svn mailing list