diff options
author | pjmattal <pjmattal> | 2005-04-22 04:18:31 +0000 |
---|---|---|
committer | pjmattal <pjmattal> | 2005-04-22 04:18:31 +0000 |
commit | dd51db3cc9b580dde933d1071033baac6dc8943d (patch) | |
tree | d9651bdf49ab70c99e15f7bf726e0df4ff025b97 /web/html/pkgsubmit.php | |
parent | 544a6f58f775c00cd73a795457fcd7ce9df0f9fc (diff) | |
download | aurweb-dd51db3cc9b580dde933d1071033baac6dc8943d.tar.xz |
applied duds.diff from simo to close bug #2584
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 |