Ticket #14342 (closed defect: fixed)
xmlnode / XMPP mood API generate bogus XML
| Reported by: | darkrain42 | Owned by: | darkrain42 |
|---|---|---|---|
| Milestone: | 2.10.0 | Component: | XMPP |
| Version: | 2.9.0 | Keywords: | |
| Cc: |
Description
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)
Change History
Note: See
TracTickets for help on using
tickets.



