From 609f416c1a66ef8cbe1377a0860614e4f0ddec53 Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 27 Feb 2007 19:42:21 +0000 Subject: [PATCH] fixes for r12283: mistakenly passed already-split date to date_unparsed, and correct a mistaken comment at that header git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12286 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/mime/Message.class.php | 4 ++-- class/mime/Rfc822Header.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/class/mime/Message.class.php b/class/mime/Message.class.php index 0ecc70f3..8677c92b 100644 --- a/class/mime/Message.class.php +++ b/class/mime/Message.class.php @@ -614,10 +614,10 @@ class Message { if (count($arg_a) > 9) { $d = strtr($arg_a[0], array(' ' => ' ')); - $d = explode(' ', $d); + $d_parts = explode(' ', $d); if (!$arg_a[1]) $arg_a[1] = _("(no subject)"); - $hdr->date = getTimeStamp($d); /* argument 1: date */ + $hdr->date = getTimeStamp($d_parts); /* argument 1: date */ $hdr->date_unparsed = strtr($d,'<>',' '); /* original date */ $hdr->subject = $arg_a[1]; /* argument 2: subject */ $hdr->from = is_array($arg_a[2]) ? $arg_a[2][0] : ''; /* argument 3: from */ diff --git a/class/mime/Rfc822Header.class.php b/class/mime/Rfc822Header.class.php index f0bd56d9..ccb38c55 100644 --- a/class/mime/Rfc822Header.class.php +++ b/class/mime/Rfc822Header.class.php @@ -30,7 +30,7 @@ class Rfc822Header { */ var $date = -1; /** - * Date_original header + * Original date header as fallback for unparsable dates * @var mixed */ var $date_unparsed = ''; -- 2.25.1