diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2021-12-25 01:07:18 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2021-12-25 01:07:18 +0300 |
commit | d5f1f169bc71d32b96960266d54e189c69af00ba (patch) | |
tree | 7d0190e2d6e53af3944da7b25d3aa3d9d118b9de /src/core/ngx_regex.h | |
parent | 931acbf5bcd550af8613d131f4ba49e22e909efb (diff) |
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.
Diffstat (limited to 'src/core/ngx_regex.h')
-rw-r--r-- | src/core/ngx_regex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ngx_regex.h b/src/core/ngx_regex.h index 74e694d2e..182373a22 100644 --- a/src/core/ngx_regex.h +++ b/src/core/ngx_regex.h @@ -37,6 +37,7 @@ typedef struct { #define NGX_REGEX_CASELESS 0x00000001 +#define NGX_REGEX_MULTILINE 0x00000002 typedef struct { |