From: foobar Date: Thu, 15 Nov 2001 15:37:02 +0000 (+0000) Subject: In case of submitting form without any files selected don't set X-Git-Tag: ChangeLog~309 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae82e1ccf280b52f0e08405fdc9721133d168831;p=php In case of submitting form without any files selected don't set the tmp_name. --- diff --git a/main/rfc1867.c b/main/rfc1867.c index 112af53bbd..c3cca37034 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -706,12 +706,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) } 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);