projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a630239
)
core.stanza_router: Remove compatibility with Jabiru not including id attribute ...
author
Kim Alvefur
<zash@zash.se>
Mon, 30 May 2016 11:29:43 +0000
(13:29 +0200)
committer
Kim Alvefur
<zash@zash.se>
Mon, 30 May 2016 11:29:43 +0000
(13:29 +0200)
core/stanza_router.lua
patch
|
blob
|
history
diff --git
a/core/stanza_router.lua
b/core/stanza_router.lua
index 55c94bf4b51261ebf897f238c3de0c9cede45c3e..fb30eef5a6971e4d74905d8c52cace5d5d3fba2b 100644
(file)
--- a/
core/stanza_router.lua
+++ b/
core/stanza_router.lua
@@
-62,7
+62,6
@@
function core_process_stanza(origin, stanza)
return handle_unhandled_stanza(origin.host, origin, stanza);
end
if name == "iq" then
return handle_unhandled_stanza(origin.host, origin, stanza);
end
if name == "iq" then
- if not stanza.attr.id then stanza.attr.id = ""; end -- COMPAT Jabiru doesn't send the id attribute on roster requests
if not iq_types[st_type] or ((st_type == "set" or st_type == "get") and (#stanza.tags ~= 1)) then
origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid IQ type or incorrect number of children"));
return;
if not iq_types[st_type] or ((st_type == "set" or st_type == "get") and (#stanza.tags ~= 1)) then
origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid IQ type or incorrect number of children"));
return;