mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Changed the error for 'no upload' to E_NOTICE so that it doesn't
pollute the logs too much. @- Fixed possible crash bug in HTTP uploads. (Patch: Lucas Schroeder)
This commit is contained in:
parent
36e51815ad
commit
ae2e36a4e5
1 changed files with 4 additions and 3 deletions
|
@ -371,11 +371,12 @@ static char *php_mime_get_hdr_value(zend_llist header, char *key)
|
|||
}
|
||||
|
||||
entry = zend_llist_get_first(&header);
|
||||
do {
|
||||
while (entry) {
|
||||
if (!strcasecmp(entry->key, key)) {
|
||||
return entry->value;
|
||||
}
|
||||
} while ((entry = zend_llist_get_next(&header)));
|
||||
entry = zend_llist_get_next(&header);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
@ -726,7 +727,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
|
|||
cancel_upload = 0;
|
||||
|
||||
if(strlen(filename) == 0) {
|
||||
sapi_module.sapi_error(E_WARNING, "No file uploaded");
|
||||
sapi_module.sapi_error(E_NOTICE, "No file uploaded");
|
||||
cancel_upload = UPLOAD_ERROR_D;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue