# HG changeset patch # User Waqas Hussain # Date 1267896098 -18000 # Node ID 3165e56f96a140f6a91748021ef784f5b147eb29 # Parent 61e1203e9e66f58ad6285352b4f1d020fc808165 mod_sift: Fix for IQ children without an xmlns attribute (default to jabber:client). diff -r 61e1203e9e66 -r 3165e56f96a1 mod_sift/mod_sift.lua --- 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;