@@ -228,10 +228,10 @@ nw_rules.args = {
228
228
check = function ()
229
229
if nw_check_args then
230
230
-- parse args
231
- local args_tab , err = ngx .req .get_uri_args ()
231
+ local args_tab , err = ngx .req .get_uri_args ( nw_max_args )
232
232
if err == " truncated" then
233
- -- More than 100 args were passed
234
- block ( ' args' , ' none' , ' more than 100 args supplied' )
233
+ -- More than 'nw_max_args' args were passed
234
+ block ( ' args' , ' none' , ' more than ' .. nw_max_args .. ' args supplied' )
235
235
elseif err ~= nil or args_tab == nil then
236
236
-- If anything was wrong retrieving the args, skip the checks
237
237
return true
@@ -256,10 +256,10 @@ nw_rules.post = {
256
256
ngx .req .read_body ()
257
257
258
258
-- parse ags
259
- local args_tab , err = ngx .req .get_post_args ()
259
+ local args_tab , err = ngx .req .get_post_args ( nw_max_args )
260
260
if err == " truncated" then
261
- -- More than 100 args were passed
262
- block ( ' post' , ' none' , ' more than 100 args supplied' )
261
+ -- More than 'nw_max_args' args were passed
262
+ block ( ' post' , ' none' , ' more than ' .. nw_max_args .. ' args supplied' )
263
263
elseif err ~= nil or args_tab == nil then
264
264
-- If anything was wrong retrieving the args, skip the checks
265
265
return true
0 commit comments