diff --git a/www/web-proxy-useracl/Makefile b/www/web-proxy-useracl/Makefile index aa7aeb90b..e80e2166c 100644 --- a/www/web-proxy-useracl/Makefile +++ b/www/web-proxy-useracl/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= web-proxy-useracl PLUGIN_VERSION= 1.1 +PLUGIN_REVISION= 1 PLUGIN_COMMENT= Group and user ACL for the web proxy PLUGIN_MAINTAINER= kekek2@ya.ru PLUGIN_WWW= https://smart-soft.ru diff --git a/www/web-proxy-useracl/src/opnsense/service/templates/OPNsense/ProxyUserACL/ProxyUserACL.conf b/www/web-proxy-useracl/src/opnsense/service/templates/OPNsense/ProxyUserACL/ProxyUserACL.conf index fc2def83a..a5c48fe0a 100644 --- a/www/web-proxy-useracl/src/opnsense/service/templates/OPNsense/ProxyUserACL/ProxyUserACL.conf +++ b/www/web-proxy-useracl/src/opnsense/service/templates/OPNsense/ProxyUserACL/ProxyUserACL.conf @@ -44,9 +44,9 @@ acl user_{{ACL.Priority}} proxy_auth "/usr/local/etc/squid/ACL_useracl_{{ ACL.Pr {% if ldap|length == 1 or local|length == 1 %} {% for element in ACL.Domains.split(",") %} {% if '^' in element or '\\' in element or '$' in element or '[' in element %} -acl domains_{{ACL.Priority}} url_regex {{element}} +acl domains_{{ACL.Priority}} url_regex {{element|encode_idna}} {% else %} -acl domains_{{ACL.Priority}} url_regex {{element|replace(".","\.")}} +acl domains_{{ACL.Priority}} url_regex {{element|encode_idna|replace(".","\.")}} {% endif %} {% endfor %} {% endif %}