Fix for bug 252378: Remove $COOKIE from attachment.cgi. r=bugreport,
a=justdave. git-svn-id: svn://10.0.0.236/trunk@159593 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7bfb852acf
commit
6501e204df
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user