26
1
mirror of https://github.com/processone/ejabberd.git synced 2025-01-03 18:02:28 +01:00

Protect against bad muc#owner requests

This commit is contained in:
LOU Xun 2019-06-06 15:40:13 +00:00
parent 6c0d6f0774
commit 8d6455460d
No known key found for this signature in database
GPG Key ID: 05DAC4F7AFA6B90F

View File

@ -3245,7 +3245,9 @@ process_iq_owner(From, #iq{type = get, lang = Lang,
end; end;
true -> true ->
{error, xmpp:err_bad_request()} {error, xmpp:err_bad_request()}
end. end;
process_iq_owner(_, _, _) ->
{error, xmpp:err_bad_request()}.
-spec is_allowed_log_change(muc_roomconfig:result(), state(), jid()) -> boolean(). -spec is_allowed_log_change(muc_roomconfig:result(), state(), jid()) -> boolean().
is_allowed_log_change(Options, StateData, From) -> is_allowed_log_change(Options, StateData, From) ->