[Pidgin] #14342: xmlnode / XMPP mood API generate bogus XML

Pidgin trac at pidgin.im
Sun Jun 26 19:58:19 EDT 2011


#14342: xmlnode / XMPP mood API generate bogus XML
------------------------+---------------------------------------------------
 Reporter:  darkrain42  |     Owner:  darkrain42
     Type:  defect      |    Status:  new       
Component:  XMPP        |   Version:  2.9.0     
 Keywords:              |  
------------------------+---------------------------------------------------
 As reported on IRC, we sent:

 {{{
 <iq type='set' id='purple82a35e1a'><pubsub
 xmlns='http://jabber.org/protocol/pubsub'><publish
 node='http://jabber.org/protocol/mood'><item><mood
 xmlns='http://jabber.org/protocol/mood'></></mood></item></publish></pubsub></iq>
 }}}

 Looking through the code, this seems to be the result of passing "" to
 `xmlnode_new_child`.  Both the mood API and xmlnode should be updated to
 prevent this from happening (after testing to confirm that's how this came
 about)

-- 
Ticket URL: <http://developer.pidgin.im/ticket/14342>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list