From cae2e689083a04b2ddbb93bef5313b136080df65 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Fri, 12 Jul 2019 15:35:31 +0300 Subject: Perl: disabled unrelated calls from variable handlers. Variable handlers are not expected to send anything to the client, cannot sleep or read body, and are not expected to modify the request. Added appropriate protection to prevent accidental foot shooting. --- src/http/modules/perl/ngx_http_perl_module.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/http/modules/perl/ngx_http_perl_module.h') diff --git a/src/http/modules/perl/ngx_http_perl_module.h b/src/http/modules/perl/ngx_http_perl_module.h index 5c967dfb3..b67ce137c 100644 --- a/src/http/modules/perl/ngx_http_perl_module.h +++ b/src/http/modules/perl/ngx_http_perl_module.h @@ -33,6 +33,7 @@ typedef struct { unsigned done:1; unsigned error:1; + unsigned variable:1; ngx_array_t *variables; /* array of ngx_http_perl_var_t */ -- cgit v1.2.3