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

Anders Berg andersb at vgnett.no
Wed Aug 9 22:54:33 CEST 2006


> In message <ujrac6e5bnt.fsf at cat.linpro.no>, Dag-Erling
> Smørgrav 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.

I have to agree with Poul-Henning on this one, even if I am used to using
// myself (perl school). For some reason escaping is hard for some people.

Anders Berg



More information about the varnish-dev mailing list