summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkiko%async.com.br <>2004-07-21 06:12:33 +0200
committerkiko%async.com.br <>2004-07-21 06:12:33 +0200
commit7afde703ed9fa6d07648a36d6a009a951f1d73aa (patch)
treeb70fa82e16663435d4296472582c472f1ca8a9bf
parent8832bf88d9c7720750dc5ae1f75f50e1b6e8c89c (diff)
downloadbugzilla-7afde703ed9fa6d07648a36d6a009a951f1d73aa.tar.gz
bugzilla-7afde703ed9fa6d07648a36d6a009a951f1d73aa.tar.xz
Fix for bug 251933: Remove $::COOKIE from post_bug.cgi. r=joel, a=myk.
-rwxr-xr-xpost_bug.cgi9
1 files changed, 4 insertions, 5 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 800b46f01..a751a66a6 100755
--- a/post_bug.cgi
+++ b/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;