24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-10 21:47:01 +02: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
%% -----------------------------
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,
State = #state{access_commands = AccessCommands, get_auth = GetAuth, ip = IP},
case fxml_stream:parse_element(Data) of