diff options
author | 2001-12-21 07:42:28 +0000 | |
---|---|---|
committer | 2001-12-21 07:42:28 +0000 | |
commit | 8506c10a38e096e0e27f5f46885513c69d549bca (patch) | |
tree | 4e31f476f3040da2b41714146ef4e51b2a0a82f2 /showattachment.cgi | |
parent | Fix for bug 113646, midair when changing assignee gives error. Fix changes su... (diff) | |
download | bugzilla-8506c10a38e096e0e27f5f46885513c69d549bca.tar.gz bugzilla-8506c10a38e096e0e27f5f46885513c69d549bca.tar.bz2 bugzilla-8506c10a38e096e0e27f5f46885513c69d549bca.zip |
Bug 98080 ask for an attachment number when no params are given
r=dkl r=justdave
Diffstat (limited to 'showattachment.cgi')
-rwxr-xr-x | showattachment.cgi | 13 |
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(); |