aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-05-15 07:04:41 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-05-15 07:04:41 +0500
commit49f6299766454759ebc597e22881fda6329f380b (patch)
treeeb0c2acf731584cc1b4c5f9f71ce4a2a4e5ce927 /core
parentfa8aeaf04f2737928eab4f0df383e292435e2159 (diff)
downloadprosody-49f6299766454759ebc597e22881fda6329f380b.tar.gz
prosody-49f6299766454759ebc597e22881fda6329f380b.zip
stanza_router: Fixed an invalid stanza check
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 43ba4547..963dffca 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -54,7 +54,7 @@ function core_process_stanza(origin, 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.attr.xmlns == "error" and #stanza.tags == 0 then return; end -- TODO invalid stanza, log
+ if stanza.attr.type == "error" and #stanza.tags == 0 then return; end -- TODO invalid stanza, log
if stanza.name == "iq" then
if (stanza.attr.type == "set" or stanza.attr.type == "get") and #stanza.tags ~= 1 then
origin.send(st.error_reply(stanza, "modify", "bad-request"));