From a8368278ecf40adc0c50fceeaf428cf753ab1a11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Chmielowski?= Date: Thu, 8 Sep 2016 08:44:49 +0200 Subject: [PATCH] Properly normalize resource_regexp acl rule This fixes issue #1288. --- src/acl.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/acl.erl b/src/acl.erl index 897996976..bf17e8a1a 100644 --- a/src/acl.erl +++ b/src/acl.erl @@ -262,6 +262,7 @@ normalize_spec(Spec) -> {server, S} -> {server, nameprep(S)}; {resource, R} -> {resource, resourceprep(R)}; {server_regexp, SR} -> {server_regexp, b(SR)}; + {resource_regexp, R} -> {resource_regexp, b(R)}; {server_glob, S} -> {server_glob, b(S)}; {resource_glob, R} -> {resource_glob, b(R)}; {ip, {Net, Mask}} -> {ip, {Net, Mask}}; @@ -687,6 +688,7 @@ transform_options({acl, Name, Type}, Opts) -> {server_glob, S} -> {server_glob, [b(S)]}; {ip, S} -> {ip, [b(S)]}; {resource_glob, R} -> {resource_glob, [b(R)]} + {resource_regexp, R} -> {resource_regexp, [b(R)]} end, [{acl, [{Name, [T]}]}|Opts]; transform_options({access, Name, Rules}, Opts) -> -- 2.40.0