Chatroom invitations

Peter Saint-Andre stpeter at stpeter.im
Wed Nov 7 20:35:41 UTC 2007


Martin Atkins wrote:
> Clive Holloway wrote:
>>
>> This snippet allows chatroom members to send invites to other users.
>>
> [snip]
>>
>>         if ($stanza->isa("DJabberd::Message")
>>             && $stanza->{children}[0]{element} eq 'x'
>>             && $stanza->{children}[0]{children}[0]{element} eq
>> 'invite') {
>>
> 
> This seems risky, since I believe <message> stanzas can come with a
> <body> in them for fallback in clients without MUC support, like this:
> 
> <message ...>
>     <subject>Conference Invitation</subject>
>     <body>Please join me in the conference room "blah"
>        on conference.example.com.</body>
>     <x xmlns="jabber:x:conference">
>         <invite ... />
>     </x>
> </message>
> 
> Probably should also verify the namespace of that "x" element, too. The
> MUC spec seems to suggest that it should be:
>     <http://jabber.org/protocol/muc#user>

Correct. The jabber:x:conference was an old namespace we used back in
2000/2001 and it has been deprecated for some time now.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.danga.com/pipermail/djabberd/attachments/20071107/d5615986/smime-0001.bin


More information about the Djabberd mailing list