[Varnish] #426: Can't get the occurrences using "regsub".
Varnish
varnish-bugs at projects.linpro.no
Tue Jan 27 17:15:04 CET 2009
#426: Can't get the occurrences using "regsub".
----------------------------------+-----------------------------------------
Reporter: basilio.vera | Type: defect
Status: new | Priority: normal
Milestone: | Component: build
Version: 2.0 | Severity: normal
Keywords: regsub occurrence $n |
----------------------------------+-----------------------------------------
There's a bug introduced at some point between the 1.1.2 and 2.0.2
versions that breaks the possibility of use the "$n" matched strings. For
example:
{{{
sub vcl_recv {
....
set req.http.Foo-value = regsub(req.http.Cookie,
"(.*)(foo=[^;]+)(.*)", "$2");
....
}
}}}
In 1.1.2 versions I get in the server the header with the right value:
"Foo-value: foo=test"
In the 2.0.2 version all I get is: "$2".
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/426>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list