diff options
| author | Stefan Esser | 2012-02-12 11:21:42 +0100 |
|---|---|---|
| committer | Stefan Esser | 2012-02-12 11:21:42 +0100 |
| commit | 6edb26c052914a7cbaa4bd0d77bff93e68bd9a98 (patch) | |
| tree | 6772d7e38dead7f5f83c8b17809f46b1da098e78 /ifilter.c | |
| parent | bb630acdb0019e4bd2fdd0ade18cb77288d9422d (diff) | |
Add some variable drop statistics as requested by users
Diffstat (limited to 'ifilter.c')
| -rw-r--r-- | ifilter.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -326,16 +326,19 @@ unsigned int suhosin_input_filter(int arg, char *var, char **val, unsigned int v | |||
| 326 | /* Drop this variable if the limit was reached */ | 326 | /* Drop this variable if the limit was reached */ |
| 327 | switch (arg) { | 327 | switch (arg) { |
| 328 | case PARSE_GET: | 328 | case PARSE_GET: |
| 329 | SUHOSIN_G(att_get_vars)++; | ||
| 329 | if (SUHOSIN_G(no_more_get_variables)) { | 330 | if (SUHOSIN_G(no_more_get_variables)) { |
| 330 | return 0; | 331 | return 0; |
| 331 | } | 332 | } |
| 332 | break; | 333 | break; |
| 333 | case PARSE_POST: | 334 | case PARSE_POST: |
| 335 | SUHOSIN_G(att_post_vars)++; | ||
| 334 | if (SUHOSIN_G(no_more_post_variables)) { | 336 | if (SUHOSIN_G(no_more_post_variables)) { |
| 335 | return 0; | 337 | return 0; |
| 336 | } | 338 | } |
| 337 | break; | 339 | break; |
| 338 | case PARSE_COOKIE: | 340 | case PARSE_COOKIE: |
| 341 | SUHOSIN_G(att_cookie_vars)++; | ||
| 339 | if (SUHOSIN_G(no_more_cookie_variables)) { | 342 | if (SUHOSIN_G(no_more_cookie_variables)) { |
| 340 | return 0; | 343 | return 0; |
| 341 | } | 344 | } |
| @@ -346,6 +349,7 @@ unsigned int suhosin_input_filter(int arg, char *var, char **val, unsigned int v | |||
| 346 | } | 349 | } |
| 347 | return 1; | 350 | return 1; |
| 348 | } | 351 | } |
| 352 | SUHOSIN_G(att_request_variables)++; | ||
| 349 | 353 | ||
| 350 | /* Drop this variable if the limit is now reached */ | 354 | /* Drop this variable if the limit is now reached */ |
| 351 | switch (arg) { | 355 | switch (arg) { |
