@@ -220,9 +220,9 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr S
220
220
php_error (E_WARNING , "File upload error - no name component in content disposition" );
221
221
SAFE_RETURN ;
222
222
}
223
- filename = strstr (s , " filename=\"" );
223
+ filename = strstr (s , "filename=\"" );
224
224
if (filename && filename < loc ) {
225
- filename += 11 ;
225
+ filename += 10 ;
226
226
s = memchr (filename , '\"' , loc - filename );
227
227
if (!s ) {
228
228
php_error (E_WARNING , "File Upload Mime headers garbled filename: [%c%c%c%c%c]" , * filename , * (filename + 1 ), * (filename + 2 ), * (filename + 3 ), * (filename + 4 ));
@@ -251,11 +251,11 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr S
251
251
}
252
252
253
253
/* Add $foo[name] */
254
- if (is_arr_upload ) {
255
- sprintf (lbuf , "%s[name][%s]" , abuf , arr_index );
256
- } else {
257
- sprintf (lbuf , "%s[name]" , namebuf );
258
- }
254
+ if (is_arr_upload ) {
255
+ sprintf (lbuf , "%s[name][%s]" , abuf , arr_index );
256
+ } else {
257
+ sprintf (lbuf , "%s[name]" , namebuf );
258
+ }
259
259
if (s && s > filenamebuf ) {
260
260
register_http_post_files_variable (lbuf , s + 1 , http_post_files , 0 ELS_CC PLS_CC );
261
261
} else {
0 commit comments