Possible bug in std vmod, using backtrack and tolower, 4.0.2

Andreas Plesner Jacobsen apj at mutt.dk
Mon Nov 17 08:53:53 CET 2014


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



More information about the varnish-misc mailing list