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

trac at roundcube.net trac at roundcube.net
Wed Feb 11 14:38:41 CET 2009


Author: alec
Date: 2009-02-11 07:38:38 -0600 (Wed, 11 Feb 2009)
New Revision: 2288

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/include/main.inc
Log:
- Support non-standard "GMT-XXXX" literal in date header (#1485729)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2009-02-10 23:14:03 UTC (rev 2287)
+++ trunk/roundcubemail/CHANGELOG	2009-02-11 13:38:38 UTC (rev 2288)
@@ -4,6 +4,7 @@
 2009/02/10 (alec)
 ----------
 - Use default_charset for messages without specified charset (#1485661, #1484961)
+- Support non-standard "GMT-XXXX" literal in date header (#1485729)
 
 2009/02/08 (thomasb)
 ----------

Modified: trunk/roundcubemail/program/include/main.inc
===================================================================
--- trunk/roundcubemail/program/include/main.inc	2009-02-10 23:14:03 UTC (rev 2287)
+++ trunk/roundcubemail/program/include/main.inc	2009-02-11 13:38:38 UTC (rev 2288)
@@ -713,6 +713,8 @@
     $ts = $date;
   else if (!empty($date))
     {
+    // support non-standard "GMTXXXX" literal
+    $date = preg_replace('/GMT\s*([+-][0-9]+)/', '\\1', $date);
     // if date parsing fails, we have a date in non-rfc format.
     // remove token from the end and try again
     while ((($ts = @strtotime($date))===false) || ($ts < 0))

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



More information about the Svn mailing list