Skip to content

Commit

Permalink
Added max_input_vars directive to prevent attacks based on hash colli…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
dstogov committed Dec 15, 2011
1 parent e385335 commit a099e0d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UPGRADING
Expand Up @@ -82,6 +82,11 @@ UPGRADE NOTES - PHP X.Y
- safe_mode_protected_env_vars
- 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
=============================
Expand Down
3 changes: 3 additions & 0 deletions php.ini-development
Expand Up @@ -397,6 +397,9 @@ max_input_time = 60
; http://php.net/max-input-nesting-level
;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)
; http://php.net/memory-limit
memory_limit = 128M
Expand Down
3 changes: 3 additions & 0 deletions php.ini-production
Expand Up @@ -397,6 +397,9 @@ max_input_time = 60
; http://php.net/max-input-nesting-level
;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)
; http://php.net/memory-limit
memory_limit = 128M
Expand Down

0 comments on commit a099e0d

Please sign in to comment.