aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-09 21:48:01 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-09 21:48:01 +0000
commitee679158ff42dfcad40a84ac92d328543a744586 (patch)
tree57708bf867f30a60037b907a35fdcc47eaa9c55d /core
parent074f86605d713a42d55d3d9eb68536d0ee41c123 (diff)
parentb2a1a80faf383663f9e67f9cc64403bf09d43df3 (diff)
downloadprosody-ee679158ff42dfcad40a84ac92d328543a744586.tar.gz
prosody-ee679158ff42dfcad40a84ac92d328543a744586.zip
Merge from waqas
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 0a5ff0be..61c2dede 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -33,6 +33,7 @@ local print = print;
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