mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Added max_input_vars directive to prevent attacks based on hash collisions
This commit is contained in:
parent
4dfd69e84b
commit
e467a791d3
3 changed files with 10 additions and 0 deletions
|
@ -75,6 +75,10 @@ UPGRADE NOTES - PHP 5.4
|
||||||
- safe_mode_protected_env_vars
|
- safe_mode_protected_env_vars
|
||||||
- zend.ze1_compatibility_mode
|
- zend.ze1_compatibility_mode
|
||||||
|
|
||||||
|
- the following new directives were added
|
||||||
|
|
||||||
|
- max_input_vars - specifies how many GET/POST/COOKIE input variables may be
|
||||||
|
accepted. default value 1000.
|
||||||
|
|
||||||
=============================
|
=============================
|
||||||
2. Reserved words and classes
|
2. Reserved words and classes
|
||||||
|
|
|
@ -397,6 +397,9 @@ max_input_time = 60
|
||||||
; http://php.net/max-input-nesting-level
|
; http://php.net/max-input-nesting-level
|
||||||
;max_input_nesting_level = 64
|
;max_input_nesting_level = 64
|
||||||
|
|
||||||
|
; How many GET/POST/COOKIE input variables may be accepted
|
||||||
|
; max_input_vars = 1000
|
||||||
|
|
||||||
; Maximum amount of memory a script may consume (128MB)
|
; Maximum amount of memory a script may consume (128MB)
|
||||||
; http://php.net/memory-limit
|
; http://php.net/memory-limit
|
||||||
memory_limit = 128M
|
memory_limit = 128M
|
||||||
|
|
|
@ -397,6 +397,9 @@ max_input_time = 60
|
||||||
; http://php.net/max-input-nesting-level
|
; http://php.net/max-input-nesting-level
|
||||||
;max_input_nesting_level = 64
|
;max_input_nesting_level = 64
|
||||||
|
|
||||||
|
; How many GET/POST/COOKIE input variables may be accepted
|
||||||
|
; max_input_vars = 1000
|
||||||
|
|
||||||
; Maximum amount of memory a script may consume (128MB)
|
; Maximum amount of memory a script may consume (128MB)
|
||||||
; http://php.net/memory-limit
|
; http://php.net/memory-limit
|
||||||
memory_limit = 128M
|
memory_limit = 128M
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue