25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Merge pull request #2900 from aquarhead/protect-muc-owner

Protect against bad muc#owner requests
This commit is contained in:
Evgeny Khramtsov 2019-07-10 23:46:08 +03:00 committed by GitHub
commit d1b5844d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3370,7 +3370,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) ->