www/web-proxy-useracl: follow core change

This commit is contained in:
Franco Fichtner 2018-04-20 21:35:32 +02:00
parent 66ab992079
commit 9c063bddbc
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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 %}