1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

Sanitize message ID coming from Matrix

This commit is contained in:
Alexey Shchepin 2025-03-25 17:42:31 +03:00
parent 85dbadee5c
commit ced72f4a89

View file

@ -2718,7 +2718,8 @@ notify_event_xmpp(
UserJID = jid:make(LUser, LServer, LResource),
MsgID =
case Content of
#{<<"net.process-one.xmpp-id">> := MID} ->
#{<<"net.process-one.xmpp-id">> := MID}
when is_binary(MID) ->
MID;
_ ->
<<"">>