From 4de4438340dedfeb9d227f7ef01df070f094d59d Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 20 Jan 2016 02:49:19 -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 28d2160..54c1cd8 100644
--- a/program/lib/Roundcube/rcube_washtml.php
+++ b/program/lib/Roundcube/rcube_washtml.php
@@ -505,7 +505,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