diff options
author | Kim Alvefur <zash@zash.se> | 2020-02-27 20:01:54 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-02-27 20:01:54 +0100 |
commit | 042b5142356b638d6dcfb36f61d5451b4e8659da (patch) | |
tree | ae8b85157e70de0ea2d05f47b1556b1d483987f0 /plugins/mod_pep.lua | |
parent | 2de7db5f8bfa212294e2afeaa96da96f76e8489a (diff) | |
download | prosody-042b5142356b638d6dcfb36f61d5451b4e8659da.tar.gz prosody-042b5142356b638d6dcfb36f61d5451b4e8659da.zip |
mod_pubsub, mod_pep: Ensure correct number of children of <item/> (fixes #1496)
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r-- | plugins/mod_pep.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 12be41a2..f8047a92 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -51,7 +51,7 @@ function module.restore(data) end function is_item_stanza(item) - return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item"; + return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item" and #item.tags == 1; end function check_node_config(node, actor, new_config) -- luacheck: ignore 212/node 212/actor |