cvs: php4 /main rfc1867.c
| From: | Jani Taskinen | Date: | Tue, 23 Apr 2002 00:14:09 +0000 |
| Subject: | cvs: php4 /main rfc1867.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11319@lists.php.net to get a copy of this message | ||
sniper Mon Apr 22 20:14:09 2002 EDT
Modified files:
/php4/main rfc1867.c
Log:
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)
Index: php4/main/rfc1867.c
diff -u php4/main/rfc1867.c:1.97 php4/main/rfc1867.c:1.98
--- php4/main/rfc1867.c:1.97 Mon Apr 1 18:02:16 2002
+++ php4/main/rfc1867.c Mon Apr 22 20:14:08 2002
@@ -16,7 +16,7 @@
| Jani Taskinen <sniper@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: rfc1867.c,v 1.97 2002/04/01 23:02:16 sniper Exp $ */
+/* $Id: rfc1867.c,v 1.98 2002/04/23 00:14:08 sniper Exp $ */
/*
* This product includes software developed by the Apache Group
@@ -371,11 +371,12 @@
}
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 @@
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;
}