24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-20 22:22:09 +02:00

Fix regexp matching

This commit is contained in:
Evgeny Khramtsov 2019-07-15 15:07:56 +03:00
parent 104c4093dc
commit 061c754c68

View File

@ -706,7 +706,7 @@ check_create_room(ServerHost, Host, Room, From) ->
case mod_muc_opt:max_room_id(ServerHost) of case mod_muc_opt:max_room_id(ServerHost) of
Max when byte_size(Room) =< Max -> Max when byte_size(Room) =< Max ->
Regexp = mod_muc_opt:regexp_room_id(ServerHost), Regexp = mod_muc_opt:regexp_room_id(ServerHost),
case re:run(Room, Regexp, [unicode, {capture, none}]) of case re:run(Room, Regexp, [{capture, none}]) of
match -> match ->
AccessAdmin = mod_muc_opt:access_admin(ServerHost), AccessAdmin = mod_muc_opt:access_admin(ServerHost),
case acl:match_rule(ServerHost, AccessAdmin, From) of case acl:match_rule(ServerHost, AccessAdmin, From) of