[Varnish] #1614: Missing support for pcre in substitution string

Varnish varnish-bugs at varnish-cache.org
Tue Oct 21 00:42:30 CEST 2014


#1614: Missing support for pcre in substitution string
----------------------+--------------------
 Reporter:  anders    |       Owner:
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:
Component:  varnishd  |     Version:  3.0.5
 Severity:  normal    |  Resolution:
 Keywords:  pcre      |
----------------------+--------------------

Comment (by anders):

 Repeating VCL again with code block.

 {{{
 std.log("DEBUG: url is: " + req.url);
 set req.url = regsub(req.url, "^", "/f\x{e5}");
 std.log("DEBUG: url is now: " + req.url);
 }}}

 And command line example:

 {{{
 anders at noname:~$ echo hei | perl -p -e "s@^@\x{e5}@"
 ?hei
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1614#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list