summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-09-09 09:42:24 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-09-09 09:42:24 +0800
commitf5760ed65deefd8a7fe8ce03ff9bd4676bdc4406 (patch)
treec2fbc62cf0d03248a44f68f89849e0bb6cba8bd6 /core/io
parent95c35417cdf82c990075953320a0d06c81b6c980 (diff)
Fix parsing of XML CDATA and add test cases
Diffstat (limited to 'core/io')
-rw-r--r--core/io/xml_parser.cpp2
1 files changed, 1 insertions, 1 deletions
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));