Fix regex capture when using map directive and rewrite

Maxim Dounin mdounin at mdounin.ru
Mon Sep 28 13:55:22 UTC 2020


Hello!

On Mon, Sep 28, 2020 at 01:54:51PM +0200, Corentin REGAL wrote:

> I didn't receive any reply, is there something wrong with the patch ?

Yes.  In particular, the documentation says (http://nginx.org/r/map):

: A regular expression can contain named and positional captures 
: that can later be used in other directives along with the 
: resulting variable.

With your patch it will no longer work.

Just in case, relevant ticket in Trac is:

https://trac.nginx.org/nginx/ticket/564

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx-devel mailing list