Fix support for nonexistent or empty access_commands in ejabberd_xmlrpc
This commit is contained in:
parent
5a5f188767
commit
ad98d4a515
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue