aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/perl/ngx_http_perl_module.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2019-07-12 15:35:31 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2019-07-12 15:35:31 +0300
commitcae2e689083a04b2ddbb93bef5313b136080df65 (patch)
tree01f68ae8abb66a0969a3702df9f84f04278614bc /src/http/modules/perl/ngx_http_perl_module.h
parent19887831698e18149a45a8b9563e8fdcdaaea211 (diff)
downloadnginx-cae2e689083a04b2ddbb93bef5313b136080df65.tar.gz
nginx-cae2e689083a04b2ddbb93bef5313b136080df65.zip
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.
Diffstat (limited to 'src/http/modules/perl/ngx_http_perl_module.h')
-rw-r--r--src/http/modules/perl/ngx_http_perl_module.h1
1 files changed, 1 insertions, 0 deletions
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 */