Skip to content
Browse files

Merge pull request #3135 from Karlson2k/xbmctinyxml_fix_01

Fix simple but significant bug in parsing XML files
  • Loading branch information...
2 parents 7695d28 + 3d9bcfa commit 14e999c2cee608e67e2223db16a3129be0247b21 @MartijnKaijser MartijnKaijser committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/utils/XBMCTinyXML.cpp
View
2 xbmc/utils/XBMCTinyXML.cpp
@@ -122,7 +122,7 @@ const char *CXBMCTinyXML::Parse(CStdString &data, TiXmlParsingData *prevData, Ti
re.RegComp("^&(amp|lt|gt|quot|apos|#x[a-fA-F0-9]{1,4}|#[0-9]{1,5});.*");
while ((pos = data.find("&", pos)) != CStdString::npos)
{
- CStdString tmp = data.substr(pos, pos + MAX_ENTITY_LENGTH);
+ CStdString tmp = data.substr(pos, MAX_ENTITY_LENGTH);
if (re.RegFind(tmp) < 0)
data.insert(pos + 1, "amp;");
pos++;

0 comments on commit 14e999c

Please sign in to comment.
Something went wrong with that request. Please try again.