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

Martin Blix Grydeland martin at varnish-software.com
Thu Jan 17 19:43:15 CET 2013


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

On Thu, Jan 17, 2013 at 6:43 PM, Varnish <varnish-bugs at varnish-cache.org>wrote:

> #1249: Undeterministic results in regsub/regsuball
> ---------------------+-----------------------
>  Reporter:  arthens  |       Owner:
>      Type:  defect   |      Status:  reopened
>  Priority:  normal   |   Milestone:
> Component:  build    |     Version:  3.0.3
>  Severity:  normal   |  Resolution:
>  Keywords:           |
> ---------------------+-----------------------
> Changes (by tohide):
>
>  * status:  closed => reopened
>  * resolution:  invalid =>
>
>
> Comment:
>
>  Apologies, reopening.
>
> --
> Ticket URL: <https://www.varnish-cache.org/trac/ticket/1249#comment:8>
> Varnish <https://varnish-cache.org/>
> The Varnish HTTP Accelerator
>



-- 
<http://varnish-software.com>*Martin Blix Grydeland*
Senior Developer | Varnish Software AS
Cell: +47 21 98 92 60
We Make Websites Fly!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-bugs/attachments/20130117/3784ade5/attachment.html>


More information about the varnish-bugs mailing list