Possible bug in std vmod, using backtrack and tolower, 4.0.2
T. Pascal
t_pascal at zennet.com
Mon Nov 17 16:43:34 CET 2014
I'll have to assign the contents of the replacement group to a variable and
then lower that variable and then substitute it back in?
That's three or four vcl lines to accomplish something that seems like a
workaround to a bug. :)
-T
On Nov 16, 2014 11:56 PM, "Andreas Plesner Jacobsen" <apj at mutt.dk> wrote:
> On Sun, Nov 16, 2014 at 05:04:36PM -0800, T. Pascal wrote:
> >
> > sub vcl_rec {
> > set req.url = regsub(req.url,"([?].*)",std.tolower("\1"));
> > }
>
> You're lowercasing the string "\1", not the contents of the capturing
> group.
>
> --
> Andreas
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20141117/201a8822/attachment.html>
More information about the varnish-misc
mailing list