diff options
| author | Stefan Esser | 2014-02-11 18:59:02 +0100 |
|---|---|---|
| committer | Stefan Esser | 2014-02-11 18:59:02 +0100 |
| commit | beb007b7116527e4288671ee10c35a037338368c (patch) | |
| tree | 71b196155c918a90bcecd86d1d5833fe6d883b53 /ufilter.c | |
| parent | 3a3b3298bcea471a0f5dd26adf348abc034f581a (diff) | |
Only replace POST handlers for older PHP versions. Current PHP versions >= 5.4.0 should have okayish post handlers.
Diffstat (limited to 'ufilter.c')
| -rw-r--r-- | ufilter.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -31,6 +31,7 @@ | |||
| 31 | #include "php_variables.h" | 31 | #include "php_variables.h" |
| 32 | #include "suhosin_rfc1867.h" | 32 | #include "suhosin_rfc1867.h" |
| 33 | 33 | ||
| 34 | PHP_SUHOSIN_API int (*old_rfc1867_callback)(unsigned int event, void *event_data, void **extra TSRMLS_DC) = NULL; | ||
| 34 | #if !HAVE_RFC1867_CALLBACK | 35 | #if !HAVE_RFC1867_CALLBACK |
| 35 | PHP_SUHOSIN_API int (*php_rfc1867_callback)(unsigned int event, void *event_data, void **extra TSRMLS_DC) = NULL; | 36 | PHP_SUHOSIN_API int (*php_rfc1867_callback)(unsigned int event, void *event_data, void **extra TSRMLS_DC) = NULL; |
| 36 | #endif | 37 | #endif |
| @@ -345,8 +346,8 @@ int suhosin_rfc1867_filter(unsigned int event, void *event_data, void **extra TS | |||
| 345 | } | 346 | } |
| 346 | continue_with_next: | 347 | continue_with_next: |
| 347 | #if HAVE_RFC1867_CALLBACK | 348 | #if HAVE_RFC1867_CALLBACK |
| 348 | if (php_rfc1867_callback != NULL) { | 349 | if (old_rfc1867_callback != NULL) { |
| 349 | return php_rfc1867_callback(event, event_data, extra TSRMLS_CC); | 350 | return old_rfc1867_callback(event, event_data, extra TSRMLS_CC); |
| 350 | } | 351 | } |
| 351 | #endif | 352 | #endif |
| 352 | return SUCCESS; | 353 | return SUCCESS; |
