From facbb04915e3f774d7a9f38814d627de697d5964 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 21 Mar 2026 20:14:40 +0100 Subject: [PATCH] detect: enable pcre and urilen for firewall mode Ticket: #8397. --- src/detect-pcre.c | 3 ++- src/detect-urilen.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/detect-pcre.c b/src/detect-pcre.c index 42ed3d3380..9e086807c9 100644 --- a/src/detect-pcre.c +++ b/src/detect-pcre.c @@ -105,7 +105,8 @@ void DetectPcreRegister (void) #ifdef UNITTESTS sigmatch_table[DETECT_PCRE].RegisterTests = DetectPcreRegisterTests; #endif - sigmatch_table[DETECT_PCRE].flags = (SIGMATCH_QUOTES_OPTIONAL|SIGMATCH_HANDLE_NEGATION); + sigmatch_table[DETECT_PCRE].flags = + (SIGMATCH_QUOTES_OPTIONAL | SIGMATCH_HANDLE_NEGATION | SIGMATCH_SUPPORT_FIREWALL); intmax_t val = 0; diff --git a/src/detect-urilen.c b/src/detect-urilen.c index 19e7ec438b..79bc46f562 100644 --- a/src/detect-urilen.c +++ b/src/detect-urilen.c @@ -69,6 +69,7 @@ void DetectUrilenRegister(void) #ifdef UNITTESTS sigmatch_table[DETECT_URILEN].RegisterTests = DetectUrilenRegisterTests; #endif + sigmatch_table[DETECT_URILEN].flags = SIGMATCH_SUPPORT_FIREWALL; g_http_uri_buffer_id = DetectBufferTypeRegister("http_uri"); g_http_raw_uri_buffer_id = DetectBufferTypeRegister("http_raw_uri");