Software /
code /
prosody
Changeset
234:7c8313e055fb
Hack to allow s2s stanzas to work until we do proper namespace handling
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 10 Nov 2008 01:30:52 +0500 |
parents | 232:20745f8f4cf1 |
children | 235:6526df1a7277 |
files | core/stanza_router.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/stanza_router.lua Sun Nov 09 20:15:31 2008 +0000 +++ b/core/stanza_router.lua Mon Nov 10 01:30:52 2008 +0500 @@ -33,6 +33,7 @@ function core_process_stanza(origin, stanza) log("debug", "Received["..origin.type.."]: "..tostring(st.reply(st.reply(stanza)))) + if not stanza.attr.xmlns then stanza.attr.xmlns = "jabber:client"; end -- FIXME Hack. This should be removed when we fix namespace handling. -- TODO verify validity of stanza (as well as JID validity) if stanza.name == "iq" and not(#stanza.tags == 1 and stanza.tags[1].attr.xmlns) then if stanza.attr.type == "set" or stanza.attr.type == "get" then