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:
parent
5a5f188767
commit
ad98d4a515
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user