From af4b3be87d7251fd2cd4b9bd0cee617dca733622 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 30 Nov 2011 02:33:33 -0500 Subject: [PATCH] - Fix handling of empty <U> tags in HTML messages (#1488225) --- CHANGELOG | 1 + program/lib/washtml.php | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 1cb60a3..2e8123c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Fix handling of empty <U> tags in HTML messages (#1488225) - Add content filter for embedded attachments to protect from XSS on IE (#1487895) - Use strpos() instead of strstr() when possible (#1488211) - Fix handling HTML entities when converting HTML to text (#1488212) diff --git a/program/lib/washtml.php b/program/lib/washtml.php index 9292aa1..9c8625f 100644 --- a/program/lib/washtml.php +++ b/program/lib/washtml.php @@ -108,7 +108,7 @@ /* Block elements which could be empty but cannot be returned in short form (<tag />) */ static $block_elements = array('div', 'p', 'pre', 'blockquote', 'a', 'font', 'center', - 'table', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'dl', 'strong', 'i', 'b'); + 'table', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'dl', 'strong', 'i', 'b', 'u'); /* State for linked objects in HTML */ public $extlinks = false; -- Gitblit v1.9.1