Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

Bug in PacketParserUtils

$
0
0

Hi,

 

On line 329 of PacketParserUtils (parseContentDepth()) you have:

 

else if (event == XmlPullParser.TEXT) {

  xml.append(parser.getText());

}

this should be:

 

else if (event == XmlPullParser.TEXT) {

  xml.append(StringUtils.escapeForXML(parser.getText()));

}

 

Someone else had a similar issue somewhere else and you fixed it, I can't find this discussion anymore unfortunately, I have had this fix in my code for several months and I thought I should report it. I think the issue was that the parser unescaped the text so you have to re-escape it here. I had escaped the text before sending it and I had verified that it was received escaped by Smack. I don't remember all the details as this was several months ago. I believe this class has this issue in several places.

 

Cheers,

Gabriel


Viewing all articles
Browse latest Browse all 4979

Trending Articles