]> git.kaiwu.me - nginx.git/commit
Core: added NGX_REGEX_MULTILINE for 3rd party modules.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 24 Dec 2021 22:07:18 +0000 (01:07 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 24 Dec 2021 22:07:18 +0000 (01:07 +0300)
commitd5f1f169bc71d32b96960266d54e189c69af00ba
tree7d0190e2d6e53af3944da7b25d3aa3d9d118b9de
parent931acbf5bcd550af8613d131f4ba49e22e909efb
Core: added NGX_REGEX_MULTILINE for 3rd party modules.

Notably, NAXSI is known to misuse ngx_regex_compile() with rc.options set
to PCRE_CASELESS | PCRE_MULTILINE.  With PCRE2 support, and notably binary
compatibility changes, it is no longer possible to set PCRE[2]_MULTILINE
option without using proper interface.  To facilitate correct usage,
this change adds the NGX_REGEX_MULTILINE option.
src/core/ngx_regex.c
src/core/ngx_regex.h