From b4a0b9285f4bad7aed929c50069bfda7d75d9299 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 28 May 2012 08:36:28 +0200 Subject: Fix html2text conversion of strong|b|a|th|h tags when used in upper case --- CHANGELOG | 1 + program/lib/html2text.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 14def5434..13446ab1a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Fix html2text conversion of strong|b|a|th|h tags when used in upper case - Add listcontrols template container in Larry skin (#1488498) - Fix host autoselection when default_host is an array (#1488495) - Move messages forwarding mode setting into Preferences diff --git a/program/lib/html2text.php b/program/lib/html2text.php index 35120a712..84a7374b3 100644 --- a/program/lib/html2text.php +++ b/program/lib/html2text.php @@ -668,7 +668,7 @@ class html2text */ private function _preg_callback($matches) { - switch($matches[1]) { + switch (strtolower($matches[1])) { case 'b': case 'strong': return $this->_toupper($matches[2]); -- cgit v1.2.3