diff options
Diffstat (limited to 'header.c')
| -rw-r--r-- | header.c | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -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); |
