From: Evgeny Khramtsov Date: Mon, 15 Jul 2019 12:07:56 +0000 (+0300) Subject: Fix regexp matching X-Git-Tag: 19.08~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=061c754c6876078581f30ea002da99b295492f62;p=ejabberd Fix regexp matching --- diff --git a/src/mod_muc.erl b/src/mod_muc.erl index 8fe72881c..edefda533 100644 --- a/src/mod_muc.erl +++ b/src/mod_muc.erl @@ -706,7 +706,7 @@ check_create_room(ServerHost, Host, Room, From) -> case mod_muc_opt:max_room_id(ServerHost) of Max when byte_size(Room) =< Max -> 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 -> AccessAdmin = mod_muc_opt:access_admin(ServerHost), case acl:match_rule(ServerHost, AccessAdmin, From) of