Software /
code /
prosody-modules
Diff
mod_sift/mod_sift.lua @ 139:3165e56f96a1
mod_sift: Fix for IQ children without an xmlns attribute (default to jabber:client).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 06 Mar 2010 22:21:38 +0500 |
parent | 138:61e1203e9e66 |
child | 140:9a632cf13f51 |
line wrap: on
line diff
--- a/mod_sift/mod_sift.lua Sat Mar 06 22:08:20 2010 +0500 +++ b/mod_sift/mod_sift.lua Sat Mar 06 22:21:38 2010 +0500 @@ -96,7 +96,7 @@ local siftdata = data[stanza.attr.to]; if siftdata and siftdata.iq then -- we seem to have an IQ filter local tag = stanza.tags[1]; -- the IQ child - if not siftdata.iq[tag.attr.xmlns.."|"..tag.name] then + if not siftdata.iq[(tag.attr.xmlns or "jabber:client").."|"..tag.name] then -- element not allowed; sending back generic error origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); return true;