diff options
Diffstat (limited to 'rfc1867.c')
| -rw-r--r-- | rfc1867.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -16,7 +16,7 @@ | |||
| 16 | | Authors: Stefan Esser <sesser@sektioneins.de> | | 16 | | Authors: Stefan Esser <sesser@sektioneins.de> | |
| 17 | | Ben Fuhrmannek <ben.fuhrmannek@sektioneins.de> | | 17 | | Ben Fuhrmannek <ben.fuhrmannek@sektioneins.de> | |
| 18 | +----------------------------------------------------------------------+ | 18 | +----------------------------------------------------------------------+ |
| 19 | 19 | ||
| 20 | Note: The following code is based on main/rfc1867.c from PHP 7. | 20 | Note: The following code is based on main/rfc1867.c from PHP 7. |
| 21 | | Copyright (c) 1997-2016 The PHP Group | | 21 | | Copyright (c) 1997-2016 The PHP Group | |
| 22 | Original PHP Version 7 Authors: | 22 | Original PHP Version 7 Authors: |
| @@ -33,13 +33,11 @@ | |||
| 33 | * | 33 | * |
| 34 | */ | 34 | */ |
| 35 | 35 | ||
| 36 | #include <stdio.h> | ||
| 37 | #include "php.h" | 36 | #include "php.h" |
| 38 | #include "php_open_temporary_file.h" | 37 | #include "php_open_temporary_file.h" |
| 39 | #include "zend_globals.h" | 38 | #include "zend_globals.h" |
| 40 | #include "php_globals.h" | 39 | #include "php_globals.h" |
| 41 | #include "php_variables.h" | 40 | #include "php_variables.h" |
| 42 | // #include "rfc1867.h" | ||
| 43 | #include "suhosin_rfc1867.h" | 41 | #include "suhosin_rfc1867.h" |
| 44 | #include "php_suhosin7.h" | 42 | #include "php_suhosin7.h" |
| 45 | #include "ext/standard/php_string.h" | 43 | #include "ext/standard/php_string.h" |
| @@ -424,7 +422,7 @@ static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header) | |||
| 424 | smart_string buf_value = {0}; | 422 | smart_string buf_value = {0}; |
| 425 | char *key = NULL; | 423 | char *key = NULL; |
| 426 | size_t newlines = 0; | 424 | size_t newlines = 0; |
| 427 | 425 | ||
| 428 | /* didn't find boundary, abort */ | 426 | /* didn't find boundary, abort */ |
| 429 | if (!find_boundary(self, self->boundary)) { | 427 | if (!find_boundary(self, self->boundary)) { |
| 430 | return 0; | 428 | return 0; |
