1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Fix parsing of XML CDATA and add test cases

(cherry picked from commit 7ed2b09bc0)
This commit is contained in:
Haoyu Qiu
2022-09-09 10:16:36 +08:00
committed by Rémi Verschelde
parent 47bc0f649d
commit 7dfcd9d80d
2 changed files with 190 additions and 5 deletions

View File

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