Re: [squid-users] problem with acl urlpath_regex

From: Jeff Pang <pangj_at_arcor.de>
Date: Tue, 05 May 2009 18:05:10 +0800

gui:
> Hello,
>
> I have a problem with my acl urlpath_regex
>
> Extract from squid.conf :
>
> acl all src 0.0.0.0/0.0.0.0
> acl invalid_uri urlpath_regex ^/%
>
> http_access deny invalid_uri
> http_access allow all
>
> Now some test with wget :
>
> wget http://zayin.yahubb.cn/%ag
> --17:11:16-- http://zayin.yahubb.cn/%25ag

perl -MURI::Escape -le 'print uri_unescape("%25")'
%

As you see, %25 after uri_unescape is "%".
So something like %20,%3D doesn't include the real "%" character, but an
escape symbol used by HTTP. When they are unescaped, Squid doesn't see
this "%" again, so match failed.

-- 
Jeff Pang
DingTong Technology
www.dtonenetworks.com
Received on Tue May 05 2009 - 10:05:16 MDT

This archive was generated by hypermail 2.2.0 : Tue May 05 2009 - 12:00:01 MDT