Skip to content

Commit

Permalink
[mms] Better handling of malformed message dates in mailbox listing (…
Browse files Browse the repository at this point in the history
…Bug #13114).

Conflicts:
	imp/docs/CHANGES
	imp/package.xml
  • Loading branch information
slusarz committed Apr 14, 2014
1 parent 6d0f143 commit 36bab91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imp/docs/CHANGES
Expand Up @@ -76,6 +76,8 @@ v6.1.8
view (João Machado <geral@jpaulo.eu>).
[mms] SECURITY: Fix XSS in displaying mailbox name in dynamic mailbox view
(João Machado <geral@jpaulo.eu>).
[mms] Better handling of malformed message dates in mailbox listing (Bug
#13114).
[jan] Update Korean translation (Deokgon Kim <dgkim@dgkim.net>).


Expand Down
4 changes: 4 additions & 0 deletions imp/lib/Mailbox/Ui.php
Expand Up @@ -129,6 +129,10 @@ public function getFrom($ob)
public function getDate($date, $format = 0)
{
if (!is_object($date)) {
if (is_null($date)) {
return _("Unknown Date");
}

$date = new Horde_Imap_Client_DateTime($date);
}

Expand Down
1 change: 1 addition & 0 deletions imp/package.xml
Expand Up @@ -3564,6 +3564,7 @@
* [mms] SECURITY: Fix XSS in displaying user-defined flags in basic mailbox and message view.
* [mms] SECURITY: Fix XSS in displaying user-defined flags in dynamic mailbox view (João Machado &lt;geral@jpaulo.eu&gt;).
* [mms] SECURITY: Fix XSS in displaying mailbox name in dynamic mailbox view (João Machado &lt;geral@jpaulo.eu&gt;).
* [mms] Better handling of malformed message dates in mailbox listing (Bug #13114).
* [jan] Update Korean translation (Deokgon Kim &lt;dgkim@dgkim.net&gt;).
</notes>
</release>
Expand Down

0 comments on commit 36bab91

Please sign in to comment.