summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortimeless%mac.com <>2001-12-21 08:42:28 +0100
committertimeless%mac.com <>2001-12-21 08:42:28 +0100
commit8506c10a38e096e0e27f5f46885513c69d549bca (patch)
tree4e31f476f3040da2b41714146ef4e51b2a0a82f2
parent75f667d06000cebdea19f733463494b860d635b1 (diff)
downloadbugzilla-8506c10a38e096e0e27f5f46885513c69d549bca.tar.gz
bugzilla-8506c10a38e096e0e27f5f46885513c69d549bca.tar.xz
Bug 98080 ask for an attachment number when no params are given
r=dkl r=justdave
-rwxr-xr-xshowattachment.cgi13
1 files changed, 13 insertions, 0 deletions
diff --git a/showattachment.cgi b/showattachment.cgi
index ae81117e5..78143c550 100755
--- a/showattachment.cgi
+++ b/showattachment.cgi
@@ -26,6 +26,19 @@ use strict;
require "CGI.pl";
+if (!defined $::FORM{'attach_id'}) {
+ print "Content-type: text/html\n";
+ print "\n";
+ PutHeader("Search by attachment number");
+ print "<FORM METHOD=GET ACTION=\"showattachment.cgi\">\n";
+ print "You may view a single attachment by entering its id here: \n";
+ print "<INPUT NAME=attach_id>\n";
+ print "<INPUT TYPE=\"submit\" VALUE=\"Show Me This Attachment\">\n";
+ print "</FORM>\n";
+ PutFooter();
+ exit;
+}
+
ConnectToDatabase();
quietly_check_login();