diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-10-22 02:16:10 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-10-22 02:16:10 +0500 |
commit | 6a1146aeefa23b72e8802090aa4a82e40032b985 (patch) | |
tree | 36a4d2b1f3409e720b3f1a2142b476835b18bfd6 /plugins/mod_pep.lua | |
parent | 6c53a43802b38a0baa36b1390d645537c6730cfb (diff) | |
download | prosody-6a1146aeefa23b72e8802090aa4a82e40032b985.tar.gz prosody-6a1146aeefa23b72e8802090aa4a82e40032b985.zip |
PEP: Stricter checks on payload validity.
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 6d2ec436..66197f7a 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -133,7 +133,7 @@ module:hook("iq/bare/http://jabber.org/protocol/pubsub:pubsub", function(event) if payload and (payload.name == 'publish' or payload.name == 'retract') and payload.attr.node then -- <publish node='http://jabber.org/protocol/tune'> local node = payload.attr.node; payload = payload.tags[1]; - if payload then -- <item> + if payload and payload.name == "item" then -- <item> publish(session, node, st.clone(payload)); session.send(st.reply(stanza)); return true; |