mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Add support for maximum input variables limit
https://forum.virtualmin.com/t/php-fpm-do-not-work/117593/8?u=ilia
This commit is contained in:
@ -42,6 +42,12 @@ print &ui_table_row($text{'limits_input'},
|
||||
&find_value("max_input_time", $conf),
|
||||
8, $text{'default'})." ".$text{'db_s'});
|
||||
|
||||
# Max parsing time
|
||||
print &ui_table_row($text{'limits_vars'},
|
||||
&ui_opt_textbox("max_input_vars",
|
||||
&find_value("max_input_vars", $conf),
|
||||
8, $text{'default'}));
|
||||
|
||||
print &ui_table_end();
|
||||
print &ui_form_end([ [ "save", $text{'save'} ] ]);
|
||||
|
||||
|
@ -90,12 +90,14 @@ limits_post=Maximum HTTP POST size
|
||||
limits_upload=Maximum file upload size
|
||||
limits_exec=Maximum execution time
|
||||
limits_input=Maximum input parsing time
|
||||
limits_vars=Maximum input variables limit
|
||||
limits_err=Failed to save resource limits
|
||||
limits_emem=Missing or invalid maximum memory allocation
|
||||
limits_epost=Missing or invalid maximum HTTP POST size
|
||||
limits_eupload=Missing or invalid maximum file upload size
|
||||
limits_eexec=Missing or invalid maximum execution time
|
||||
limits_einput=Missing or invalid maximum input parsing time
|
||||
limits_evars=Missing or invalid maximum input variables limit
|
||||
|
||||
errors_title=Error Logging
|
||||
errors_header=Error message display and logging options
|
||||
|
@ -41,6 +41,12 @@ $in{"max_input_time_def"} || $in{"max_input_time"} =~ /^\-?\d+$/ ||
|
||||
&save_directive($conf, "max_input_time",
|
||||
$in{"max_input_time_def"} ? undef : $in{"max_input_time"});
|
||||
|
||||
# Save max input vars limit
|
||||
$in{"max_input_vars_def"} || $in{"max_input_vars"} =~ /^\d+$/ ||
|
||||
&error($text{'limits_evars'});
|
||||
&save_directive($conf, "max_input_vars",
|
||||
$in{"max_input_vars_def"} ? undef : $in{"max_input_vars"});
|
||||
|
||||
&flush_file_lines_as_user($in{'file'}, undef, 1);
|
||||
&unlock_file($in{'file'});
|
||||
&graceful_apache_restart($in{'file'});
|
||||
|
Reference in New Issue
Block a user