alecpl
2009-02-11 33875df40b31d571597d92e9f1bd100fba10d10b
- Support non-standard "GMT-XXXX" literal in date header (#1485729)


2 files modified
3 ■■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/include/main.inc 2 ●●●●● patch | view | raw | blame | history
CHANGELOG
@@ -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)
----------
program/include/main.inc
@@ -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))