25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Fix support for nonexistent or empty access_commands in ejabberd_xmlrpc

This commit is contained in:
Badlop 2019-06-19 09:19:13 +02:00
parent 5a5f188767
commit ad98d4a515

View File

@ -201,7 +201,7 @@ accept(Pid) ->
%% HTTP interface %% HTTP interface
%% ----------------------------- %% -----------------------------
process(_, #request{method = 'POST', data = Data, opts = Opts, ip = {IP, _}}) -> process(_, #request{method = 'POST', data = Data, opts = Opts, ip = {IP, _}}) ->
AccessCommands = proplists:get_value(access_commands, Opts), AccessCommands = proplists:get_value(access_commands, Opts, []),
GetAuth = true, GetAuth = true,
State = #state{access_commands = AccessCommands, get_auth = GetAuth, ip = IP}, State = #state{access_commands = AccessCommands, get_auth = GetAuth, ip = IP},
case fxml_stream:parse_element(Data) of case fxml_stream:parse_element(Data) of