Software /
code /
prosody
Changeset
6923:f755e0bdc60a
muc.lib: Fix pattern so that it doesn't match hashes containing null bytes, causing dropped stanzas (thanks Jitsi folk!)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 17 Nov 2015 17:01:25 +0000 |
parents | 6922:e0672860d208 |
children | 6924:c37ad3e1fdd9 7010:001b3cff4ed8 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Mon Nov 09 14:16:39 2015 +0100 +++ b/plugins/muc/muc.lib.lua Tue Nov 17 17:01:25 2015 +0000 @@ -361,7 +361,7 @@ end local function deconstruct_stanza_id(room, stanza) local from_jid_possiblybare, to_nick = stanza.attr.from, stanza.attr.to; - local from_jid, id, to_jid_hash = (base64.decode(stanza.attr.id) or ""):match("^(.+)%z(.*)%z(.+)$"); + local from_jid, id, to_jid_hash = (base64.decode(stanza.attr.id) or ""):match("^(%Z+)%z(%Z*)%z(.+)$"); local from_nick = room._jid_nick[from_jid]; if not(from_nick) then return; end