browser acl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

browser acl

Vieri
Hi,

Which one of the two examples below is syntactically correct?

acl UA browser Firefox/

acl UA browser Firefox\/

Thanks,

Vieri
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: browser acl

Amos Jeffries
Administrator
On 2017-12-27 19:59, Vieri wrote:
> Hi,
>
> Which one of the two examples below is syntactically correct?
>
> acl UA browser Firefox/
>
> acl UA browser Firefox\/
>

Both, depending on your regex library. The syntax above are just text
strings passed from Squid to your regex library as-is.

\-escaping is only supported by Squid-3.5+ when inside ""-quoted
parameters. Older versions do not unescape it at all.

Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: browser acl

Alex Rousskov
On 12/27/2017 06:53 AM, Amos Jeffries wrote:

> \-escaping is only supported by Squid-3.5+ when inside ""-quoted
> parameters. Older versions do not unescape it at all.
 And, for backward compatibility reasons, only a few directives actually
support "quoted parameters" unless configuration_includes_quoted_values
is on (it is off by default).

http://www.squid-cache.org/Doc/config/configuration_includes_quoted_values/

Alex.
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users