XMPPJid does not handle / or @ in resource

14 views
Skip to first unread message

Caleb TR

unread,
Sep 28, 2013, 1:56:12 PM9/28/13
to ja...@googlegroups.com
Hi,

I noticed in XMPPJid that jids with resources containing '/' or '@' are not being processed properly.

  eg

  jid@domain/resource/resource
  jid@domain/resource@resource

Per http://xmpp.org/extensions/xep-0029.html, these are both valid characters in the resource.

Calling new XMPPJid() on these will return objects without the resource property.

It is simple enough to fix, so I am attaching a patch.

Caleb TR
xmppjid_patch.diff

Abhinav Singh

unread,
Sep 28, 2013, 3:24:20 PM9/28/13
to ja...@googlegroups.com
Thanks for catching on that. Can you please send a PR on github for this?

--
Abhinav
Reply all
Reply to author
Forward
0 new messages