[Varnish] #1249: Undeterministic results in regsub/regsuball

Varnish varnish-bugs at varnish-cache.org
Thu Jan 17 19:44:46 CET 2013


#1249: Undeterministic results in regsub/regsuball
---------------------+----------------------
 Reporter:  arthens  |       Owner:
     Type:  defect   |      Status:  closed
 Priority:  normal   |   Milestone:
Component:  build    |     Version:  3.0.3
 Severity:  normal   |  Resolution:  invalid
 Keywords:           |
---------------------+----------------------
Changes (by martin):

 * status:  reopened => closed
 * resolution:   => invalid


Comment:

 Unrelated, and this happens because your regex is wrong. You probably want
 to do something along this in the regsub (your substitution has to
 substitute everything you want to change, and then reinsert the captures
 that should stay):

 ban("req.url ~ "+regsuball(req.url, "code=cotn:([^&]+).*$",".*\1.*"));

 Reclosing.

 Regards,
 Martin Blix Grydeland

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




More information about the varnish-bugs mailing list