mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: Fixed problem with ParseXML hanging on single endtag
This commit is contained in:
parent
5933c7cc77
commit
eb4ed035e2
4 changed files with 37 additions and 1 deletions
|
|
@ -1012,7 +1012,8 @@ static XmlNode sReadXmlNode(XmlParser& p, ParseXmlFilter *filter, dword style)
|
|||
m.Shrink();
|
||||
return m;
|
||||
}
|
||||
p.ReadText(); // skip empty text
|
||||
if(p.ReadText().GetCount() == 0) // skip empty text
|
||||
throw XmlError("Unexpected text");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue