diff --git a/CHANGELOG b/CHANGELOG index 2eafe598b..676680bfe 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -48,6 +48,7 @@ CHANGELOG Roundcube Webmail - Use contact_search_name format in popup on results in compose contacts search - Fix handling of 'mailto' and 'error' arguments in message_before_send hook (#5347) - Fix missing localization of HTML editor when assets_dir != INSTALL_PATH +- Fix handling of blockquote tags with mixed case on html2text conversion (#5363) RELEASE 1.2.0 ------------- diff --git a/program/lib/Roundcube/rcube_html2text.php b/program/lib/Roundcube/rcube_html2text.php index 2c16171b5..0639edd84 100644 --- a/program/lib/Roundcube/rcube_html2text.php +++ b/program/lib/Roundcube/rcube_html2text.php @@ -587,11 +587,11 @@ class rcube_html2text { $level = 0; $offset = 0; - while (($start = strpos($text, '', $offset); - $next = strpos($text, '', $offset); + $next = stripos($text, ', skip if ($next !== false && $next < $end) { diff --git a/tests/Framework/Html2text.php b/tests/Framework/Html2text.php index be1488295..889ba8241 100644 --- a/tests/Framework/Html2text.php +++ b/tests/Framework/Html2text.php @@ -79,7 +79,7 @@ class rc_html2text extends PHPUnit_Framework_TestCase { $html = <<Begin
OUTER BEGIN
INNER 1

Par 1
-
INNER 2

Par 2
+
INNER 2

Par 2

Par 3

INNER 3
OUTER END
EOF;