From dd51db3cc9b580dde933d1071033baac6dc8943d Mon Sep 17 00:00:00 2001 From: pjmattal Date: Fri, 22 Apr 2005 04:18:31 +0000 Subject: applied duds.diff from simo to close bug #2584 --- web/html/pkgsubmit.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/html/pkgsubmit.php') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index ed2fb08..9ef2737 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -67,6 +67,11 @@ if ($_COOKIE["AURSID"]) { # can only add/change packages in Unsupported. # + #Before processing, make sure we even have a file + # + if ($_FILES['pfile']['size'] == 0){ + $error = __("Error - No file uploaded"); + } if (!$error) { # no errors checking upload permissions, go ahead and try to process -- cgit v1.2.3-70-g09d2