From 889989db0632d3c94c7046b1a0ebbbf17822107d Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Wed, 20 Jan 2016 02:49:37 -0500 Subject: [PATCH] Fix regression where xml mode could be used to parse xhtml messages causing empty result --- program/lib/Roundcube/rcube_washtml.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/lib/Roundcube/rcube_washtml.php b/program/lib/Roundcube/rcube_washtml.php index f09baa5..2b31033 100644 --- a/program/lib/Roundcube/rcube_washtml.php +++ b/program/lib/Roundcube/rcube_washtml.php @@ -501,7 +501,7 @@ $this->max_nesting_level = (int) @ini_get('xdebug.max_nesting_level'); // SVG need to be parsed as XML - $this->is_xml = stripos($html, '<svg') !== false || stripos($html, '<?xml') !== false; + $this->is_xml = stripos($html, '<html') === false && stripos($html, '<svg') !== false; $method = $this->is_xml ? 'loadXML' : 'loadHTML'; $options = 0; -- Gitblit v1.9.1