From b2c971528421f3efc2bfd3d4016f842a9fd17127 Mon Sep 17 00:00:00 2001 From: "kiko%async.com.br" Date: Tue, 20 Jul 2004 21:12:33 +0000 Subject: [PATCH] Fix for bug 251933: Remove $::COOKIE from post_bug.cgi. r=joel, a=myk. git-svn-id: svn://10.0.0.236/trunk@159551 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/post_bug.cgi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mozilla/webtools/bugzilla/post_bug.cgi b/mozilla/webtools/bugzilla/post_bug.cgi index 800b46f0165..a751a66a651 100755 --- a/mozilla/webtools/bugzilla/post_bug.cgi +++ b/mozilla/webtools/bugzilla/post_bug.cgi @@ -39,7 +39,6 @@ use Bugzilla::User; sub sillyness { my $zz; $zz = $::buffer; - $zz = %::COOKIE; $zz = %::components; $zz = %::versions; $zz = @::legal_opsys; @@ -469,8 +468,8 @@ if (UserInGroup("editbugs")) { # Email everyone the details of the new bug $vars->{'mailrecipients'} = { 'cc' => \@cc, 'owner' => DBID_to_name($::FORM{'assigned_to'}), - 'reporter' => $::COOKIE{'Bugzilla_login'}, - 'changer' => $::COOKIE{'Bugzilla_login'} }; + 'reporter' => Bugzilla->user->login, + 'changer' => Bugzilla->user->login }; if (defined $::FORM{'qa_contact'}) { $vars->{'mailrecipients'}->{'qa'} = DBID_to_name($::FORM{'qa_contact'}); @@ -493,8 +492,8 @@ foreach my $i (@all_deps) { } my @bug_list; -if ($::COOKIE{"BUGLIST"}) { - @bug_list = split(/:/, $::COOKIE{"BUGLIST"}); +if ($cgi->cookie("BUGLIST")) { + @bug_list = split(/:/, $cgi->cookie("BUGLIST")); } $vars->{'bug_list'} = \@bug_list;