From 108a6147b24d7957657c3b64b0b50c80e97fe0fd Mon Sep 17 00:00:00 2001 From: Christian Carey Date: Tue, 29 Apr 2025 00:17:58 -0400 Subject: [PATCH] Resolve issue #611. --- src/http/ngx_http_script.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index a2b9f1b7b..d7cc2b78f 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -1115,6 +1115,11 @@ ngx_http_script_regex_start_code(ngx_http_script_engine_t *e) e->sp++; e->ip += sizeof(ngx_http_script_regex_code_t); + + /* Resolve issue #611 (https://github.com/nginx/nginx/issues/611). */ + if (NULL == strchr((const char *) e->line.data, '%')) { + e->quote = 0; + } return; }