Changeset

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
parents 138:61e1203e9e66
children 140:9a632cf13f51
files mod_sift/mod_sift.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;