Re: [squid-users] url_regex -> to bug or not to bug?

From: Lieven Marchand <lieven.marchand@dont-contact.us>
Date: 03 Jan 2003 12:20:22 +0100

Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> writes:

> On 3 January 2003 10:18, Schelstraete Bart wrote:
> > Hello,
> >
> > I'm using Squid 2.5, and I have an 'acl' defined in my squid.conf
> > to match all url's containing for example the words 'dating.'
> > (ending on a '.'!)
> >
> > This is what I'm using
> > #acl blocked url_regex -i dating\.
> >
> > This acl should match every url containing 'dating.'. But the problem
> > is that he also matches -for example-
> > 'http://mydomain.com/blabla.php?45435+This+is+not+correct+updating+'
> >
> > There is no '.' after dating in that url, so it should match
> > it.....(but it does) Am I doing something wrong or is this a known
> > bug?
>
> Dunno, bug grep does NOT treat \. as a literal dot either. try
>
> $ echo testtest | grep test\.

Your \ is getting eaten by the shell.

[dol-guldur]:~$ echo testtest | grep 'test\.'

-- 
Never argue with a fool in public. People might not see the difference.
Received on Fri Jan 03 2003 - 04:20:28 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:12:26 MST