r778 - in trunk/varnish-cache: bin/varnishd include lib/libvcl

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Aug 9 15:16:16 CEST 2006


In message <ujrac6e5bnt.fsf at cat.linpro.no>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= writes:
>"Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
>> "Dag-Erling Sm=F8rgrav" <des at linpro.no> writes:
>> > if (req.http.host ~ "^(www\\.)?vg\\.no$") {
>> I think we should drop \ substitution in VCL strings in toto.
>> Instead we could allow HTTP like %xx so that people can get " into
>> a string.
>
>I'd rather have a different syntax for regexps (// instead of ""), if
>it can be done.

Using // sucks for URls, you have to escape all /'s.

That's why "..." is better.



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