diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-09-09 07:52:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 07:52:30 +0200 |
commit | b4967e3b408230d5db56b9b98ae88ca2a9d90954 (patch) | |
tree | c2fbc62cf0d03248a44f68f89849e0bb6cba8bd6 /core/io | |
parent | 95c35417cdf82c990075953320a0d06c81b6c980 (diff) | |
parent | f5760ed65deefd8a7fe8ce03ff9bd4676bdc4406 (diff) |
Merge pull request #65555 from timothyqiu/xml-parser-fixes
Fix parsing of XML CDATA and add test cases
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/xml_parser.cpp | 2 |
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)); |