1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix parsing of XML CDATA and add test cases

This commit is contained in:
Haoyu Qiu
2022-09-09 09:42:24 +08:00
parent 95c35417cd
commit f5760ed65d
2 changed files with 165 additions and 1 deletions

View File

@@ -137,7 +137,7 @@ bool XMLParser::_parse_cdata() {
next_char();
}
if (cDataEnd) {
if (!cDataEnd) {
cDataEnd = P;
}
node_name = String::utf8(cDataBegin, (int)(cDataEnd - cDataBegin));