Aleksander Machniak
2016-01-20 0e77b6f1b320769a935bbd77dfa5d44859b6544d
Fix regression where xml mode could be used to parse xhtml messages causing empty result
1 files modified
2 ■■■ changed files
program/lib/Roundcube/rcube_washtml.php 2 ●●● patch | view | raw | blame | history
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;