From ad6a65efa1506e70e460430e9636573eed9f2abc Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 30 Mar 2010 19:40:16 +0100 Subject: stanza_router, s2smanager, modulemanager: Fix for handling of the default namespace on stanzas, causing sometimes jabber:client to be sent over s2s, and accepted --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modulemanager.lua') diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 4d4468a7..3ad02b30 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -270,7 +270,7 @@ function handle_stanza(host, origin, stanza) (handlers[1])(origin, stanza); return true; else - if stanza.attr.xmlns == "jabber:client" then + if stanza.attr.xmlns == nil then log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- cgit v1.2.3