Fix XSS issue in handling of CDATA in HTML messages

release-1.2
Aleksander Machniak 5 years ago committed by Thomas Bruederli
parent d3f2759a6b
commit 4312dc4efe

@ -472,9 +472,6 @@ class rcube_washtml
break; break;
case XML_CDATA_SECTION_NODE: case XML_CDATA_SECTION_NODE:
$dump .= $node->nodeValue;
break;
case XML_TEXT_NODE: case XML_TEXT_NODE:
$dump .= htmlspecialchars($node->nodeValue); $dump .= htmlspecialchars($node->nodeValue);
break; break;

Loading…
Cancel
Save