summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkiko%async.com.br <>2004-07-22 02:53:34 +0200
committerkiko%async.com.br <>2004-07-22 02:53:34 +0200
commit8c96e74e3dbb34cdc97282e91f019dfed8df1405 (patch)
tree5e645c9275a50f21447fd6c35a73c7e54ce6039e
parent4e17422cf35a7a9dbb0451067b7559d0fe0acc02 (diff)
downloadbugzilla-8c96e74e3dbb34cdc97282e91f019dfed8df1405.tar.gz
bugzilla-8c96e74e3dbb34cdc97282e91f019dfed8df1405.tar.xz
Fix for bug 252378: Remove $COOKIE from attachment.cgi. r=bugreport,
a=justdave.
-rwxr-xr-xattachment.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 06a04291e..ca4380902 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -870,7 +870,7 @@ sub insert
$comment = Text::Wrap::wrap('', '', $comment);
AppendComment($::FORM{'bugid'},
- $::COOKIE{"Bugzilla_login"},
+ Bugzilla->user->login,
$comment,
$isprivate);
@@ -934,7 +934,7 @@ sub insert
}
# Define the variables and functions that will be passed to the UI template.
- $vars->{'mailrecipients'} = { 'changer' => $::COOKIE{'Bugzilla_login'},
+ $vars->{'mailrecipients'} = { 'changer' => Bugzilla->user->login,
'owner' => $owner };
my $bugid = $::FORM{'bugid'};
detaint_natural($bugid); # don't bother with error condition, we know it'll work
@@ -1156,7 +1156,7 @@ sub update
}
# Define the variables and functions that will be passed to the UI template.
- $vars->{'mailrecipients'} = { 'changer' => $::COOKIE{'Bugzilla_login'} };
+ $vars->{'mailrecipients'} = { 'changer' => Bugzilla->user->login };
$vars->{'attachid'} = $::FORM{'id'};
$vars->{'bugid'} = $bugid;