When changing purge->ban in 3.0, should we also expose the VRT_ban_string functionality from VCL instead of relying on magic parsing the difference

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Apr 29 12:48:45 CEST 2011


In message <87liyte4a5.fsf at qurzaw.varnish-software.com>, Tollef Fog Heen writes
:

>looks a whole lot more sane than:
>
>ban("req.url == req.url"); 

It would be:

	ban(req.url, '==', req.url)

Or possibly even

	ban("req.url", '==', req.url)

>Or are you worried about the case of req.url (or whatever you ban on)
>containing &&, || and similar characters?  

Also that.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.




More information about the varnish-dev mailing list