summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-10 10:30:39 +0200
committerlpsolit%gmail.com <>2005-08-10 10:30:39 +0200
commit8d06d1ef539f3f8becc56953b040bc710ec9a859 (patch)
treeec55649c78ed3ccfcb79257b3269d30c2703cb8d /post_bug.cgi
parent67b67a2e824b5120c3d8d06948927b5372ea98a6 (diff)
downloadbugzilla-8d06d1ef539f3f8becc56953b040bc710ec9a859.tar.gz
bugzilla-8d06d1ef539f3f8becc56953b040bc710ec9a859.tar.xz
Bug 301508: Remove CGI.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat,wicked a=justdave
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi7
1 files changed, 2 insertions, 5 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 01c0e1845..0c421b638 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -26,7 +26,7 @@
use strict;
use lib qw(.);
-require "CGI.pl";
+require "globals.pl";
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Bug;
@@ -37,7 +37,6 @@ use Bugzilla::Field;
# "use vars" chokes on me when I try it here.
sub sillyness {
my $zz;
- $zz = $::buffer;
$zz = %::components;
$zz = %::versions;
$zz = @::legal_opsys;
@@ -52,9 +51,7 @@ sub sillyness {
use vars qw($vars $template);
my $user = Bugzilla->login(LOGIN_REQUIRED);
-
my $cgi = Bugzilla->cgi;
-
my $dbh = Bugzilla->dbh;
# do a match on the fields if applicable
@@ -94,7 +91,7 @@ if (defined $cgi->param('product')) {
}
if (defined $cgi->param('maketemplate')) {
- $vars->{'url'} = $::buffer;
+ $vars->{'url'} = $cgi->query_string();
print $cgi->header();
$template->process("bug/create/make-template.html.tmpl", $vars)