diff options
| author | Stefan Esser | 2012-01-14 09:37:09 +0100 |
|---|---|---|
| committer | Stefan Esser | 2012-01-14 09:37:09 +0100 |
| commit | f6453621b786a13e8be17fb1a6ee04601383f9d4 (patch) | |
| tree | 4daea3086ce20235dd59bea86b9cd03d47ba6f93 | |
| parent | cc3f4212f8766cc87ad3d9f161f6e5d9e4733a46 (diff) | |
Fixed that disabling HTTP response splitting protection also disabled NUL byte protection in HTTP headers
| -rw-r--r-- | Changelog | 1 | ||||
| -rw-r--r-- | header.c | 5 |
2 files changed, 5 insertions, 1 deletions
| @@ -1,5 +1,6 @@ | |||
| 1 | 2012-01-11 - 0.9.33-dev | 1 | 2012-01-11 - 0.9.33-dev |
| 2 | 2 | ||
| 3 | - Fixed that disabling HTTP response splitting protection also disabled NUL byte protection in HTTP headers | ||
| 3 | - Removed crypt() support - because not used for PHP >= 5.3.0 anyway | 4 | - Removed crypt() support - because not used for PHP >= 5.3.0 anyway |
| 4 | 5 | ||
| 5 | 2010-07-23 - 0.9.32.1 | 6 | 2010-07-23 - 0.9.32.1 |
| @@ -240,7 +240,7 @@ int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct | |||
| 240 | } | 240 | } |
| 241 | #endif | 241 | #endif |
| 242 | 242 | ||
| 243 | if (!SUHOSIN_G(allow_multiheader) && sapi_header && sapi_header->header) { | 243 | if (sapi_header && sapi_header->header) { |
| 244 | 244 | ||
| 245 | tmp = sapi_header->header; | 245 | tmp = sapi_header->header; |
| 246 | 246 | ||
| @@ -256,6 +256,9 @@ int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct | |||
| 256 | if (!SUHOSIN_G(simulation)) { | 256 | if (!SUHOSIN_G(simulation)) { |
| 257 | sapi_header->header_len = i; | 257 | sapi_header->header_len = i; |
| 258 | } | 258 | } |
| 259 | } | ||
| 260 | if (SUHOSIN_G(allow_multiheader)) { | ||
| 261 | continue; | ||
| 259 | } else if ((tmp[0] == '\r' && (tmp[1] != '\n' || i == 0)) || | 262 | } else if ((tmp[0] == '\r' && (tmp[1] != '\n' || i == 0)) || |
| 260 | (tmp[0] == '\n' && (i == sapi_header->header_len-1 || i == 0 || (tmp[1] != ' ' && tmp[1] != '\t')))) { | 263 | (tmp[0] == '\n' && (i == sapi_header->header_len-1 || i == 0 || (tmp[1] != ' ' && tmp[1] != '\t')))) { |
| 261 | char *fname = get_active_function_name(TSRMLS_C); | 264 | char *fname = get_active_function_name(TSRMLS_C); |
