From f5760ed65deefd8a7fe8ce03ff9bd4676bdc4406 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Fri, 9 Sep 2022 09:42:24 +0800 Subject: Fix parsing of XML CDATA and add test cases --- core/io/xml_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/io') diff --git a/core/io/xml_parser.cpp b/core/io/xml_parser.cpp index 154b55f5e7..abae48fdd8 100644 --- a/core/io/xml_parser.cpp +++ b/core/io/xml_parser.cpp @@ -137,7 +137,7 @@ bool XMLParser::_parse_cdata() { next_char(); } - if (cDataEnd) { + if (!cDataEnd) { cDataEnd = P; } node_name = String::utf8(cDataBegin, (int)(cDataEnd - cDataBegin)); -- cgit v1.2.3