cvs: php4 /main rfc1867.c
| From: | Jani Taskinen | Date: | Thu, 15 Nov 2001 15:37:02 +0000 |
| Subject: | cvs: php4 /main rfc1867.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8216@lists.php.net to get a copy of this message | ||
sniper Thu Nov 15 10:37:02 2001 EDT
Modified files:
/php4/main rfc1867.c
Log:
In case of submitting form without any files selected don't set
the tmp_name.
Index: php4/main/rfc1867.c
diff -u php4/main/rfc1867.c:1.81 php4/main/rfc1867.c:1.82
--- php4/main/rfc1867.c:1.81 Sat Nov 10 20:51:17 2001
+++ php4/main/rfc1867.c Thu Nov 15 10:37:02 2001
@@ -16,7 +16,7 @@
| Jani Taskinen <sniper@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: rfc1867.c,v 1.81 2001/11/11 01:51:17 sniper Exp $ */
+/* $Id: rfc1867.c,v 1.82 2001/11/15 15:37:02 sniper Exp $ */
/*
* This product includes software developed by the Apache Group
@@ -706,12 +706,7 @@
}
fclose(fp);
- if(cancel_upload) {
-
- if(cancel_upload == 1) {
- if (filename) efree(filename);
- SAFE_RETURN;
- }
+ if(cancel_upload || total_bytes == 0) {
if(temp_filename) {
unlink(temp_filename);