summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2011-12-14 08:56:35 +0000
committerDmitry Stogov <dmitry@php.net>2011-12-14 08:56:35 +0000
commit6fb3897f8052d29d46e73a8f666acc027a384615 (patch)
tree49da7e0c5b31451104a01faf5fcec12e39041fd8 /main/main.c
parentf94cc91dda4b12250c3e590457c459ab8c82f0d8 (diff)
downloadphp-git-6fb3897f8052d29d46e73a8f666acc027a384615.tar.gz
Added max_input_vars directive to prevent attacks based on hash collisions
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index b92e2d7046..5c25ac4f4c 100644
--- a/main/main.c
+++ b/main/main.c
@@ -531,6 +531,7 @@ PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("post_max_size", "8M", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateLong, post_max_size, sapi_globals_struct,sapi_globals)
STD_PHP_INI_ENTRY("upload_tmp_dir", NULL, PHP_INI_SYSTEM, OnUpdateStringUnempty, upload_tmp_dir, php_core_globals, core_globals)
STD_PHP_INI_ENTRY("max_input_nesting_level", "64", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateLongGEZero, max_input_nesting_level, php_core_globals, core_globals)
+ STD_PHP_INI_ENTRY("max_input_vars", "1000", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateLongGEZero, max_input_vars, php_core_globals, core_globals)
STD_PHP_INI_ENTRY("user_dir", NULL, PHP_INI_SYSTEM, OnUpdateString, user_dir, php_core_globals, core_globals)
STD_PHP_INI_ENTRY("variables_order", "EGPCS", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateStringUnempty, variables_order, php_core_globals, core_globals)