]> granicus.if.org Git - php/commitdiff
MFH the possible crash bug fix and warning -> notice change.
authorfoobar <sniper@php.net>
Tue, 23 Apr 2002 03:08:49 +0000 (03:08 +0000)
committerfoobar <sniper@php.net>
Tue, 23 Apr 2002 03:08:49 +0000 (03:08 +0000)
main/rfc1867.c

index 5c997cda6a8dbb043f0d6ad66d97e5466a97e193..84c6078e388862e81a64c6d9c61df5022e24f135 100644 (file)
@@ -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;
                        }