25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-11 15:08:56 +02:00

Relax check for valid command name in access_persmissions

This commit is contained in:
Paweł Chmielowski 2018-05-11 12:24:00 +02:00
parent 338d27b45b
commit 6ac8f6eaee

View File

@ -506,7 +506,7 @@ is_valid_command_name2(<<>>) ->
true;
is_valid_command_name2(<<K:8, Rest/binary>>) when (K >= $a andalso K =< $z)
orelse (K >= $0 andalso K =< $9)
orelse K == $_ ->
orelse K == $_ orelse K == $- ->
is_valid_command_name2(Rest);
is_valid_command_name2(_) ->
false.