mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Relax check for valid command name in access_persmissions
This commit is contained in:
parent
338d27b45b
commit
6ac8f6eaee
@ -506,7 +506,7 @@ is_valid_command_name2(<<>>) ->
|
|||||||
true;
|
true;
|
||||||
is_valid_command_name2(<<K:8, Rest/binary>>) when (K >= $a andalso K =< $z)
|
is_valid_command_name2(<<K:8, Rest/binary>>) when (K >= $a andalso K =< $z)
|
||||||
orelse (K >= $0 andalso K =< $9)
|
orelse (K >= $0 andalso K =< $9)
|
||||||
orelse K == $_ ->
|
orelse K == $_ orelse K == $- ->
|
||||||
is_valid_command_name2(Rest);
|
is_valid_command_name2(Rest);
|
||||||
is_valid_command_name2(_) ->
|
is_valid_command_name2(_) ->
|
||||||
false.
|
false.
|
||||||
|
Loading…
Reference in New Issue
Block a user