summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2005-04-22 06:18:31 +0200
committerpjmattal <pjmattal>2005-04-22 06:18:31 +0200
commitdd51db3cc9b580dde933d1071033baac6dc8943d (patch)
treed9651bdf49ab70c99e15f7bf726e0df4ff025b97 /web
parent544a6f58f775c00cd73a795457fcd7ce9df0f9fc (diff)
downloadaur-dd51db3cc9b580dde933d1071033baac6dc8943d.tar.gz
aur-dd51db3cc9b580dde933d1071033baac6dc8943d.tar.xz
applied duds.diff from simo to close bug #2584
Diffstat (limited to 'web')
-rw-r--r--web/html/pkgsubmit.php5
-rw-r--r--web/lang/submit_po.inc5
2 files changed, 10 insertions, 0 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index ed2fb086..9ef2737c 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
diff --git a/web/lang/submit_po.inc b/web/lang/submit_po.inc
index c21482a2..363fd5d7 100644
--- a/web/lang/submit_po.inc
+++ b/web/lang/submit_po.inc
@@ -201,4 +201,9 @@ $_t["en"]["Package upload successful."] = "Package upload successful.";
# $_t["fr"]["Package upload successful"] = "--> Traduction française ici. <--";
# $_t["de"]["Package upload successful"] = "--> Deutsche Übersetzung hier. <--";
+$_t["en"]["Error - No file uploaded"] = "Error - No file uploaded";
+# $_t["es"]["Package upload successful"] = "--> Traducción española aquí. <--";
+# $_t["fr"]["Package upload successful"] = "--> Traduction française ici. <--";
+# $_t["de"]["Package upload successful"] = "--> Deutsche Übersetzung hier. <--";
+
?>