From 93815fc7619567cc962e053280c5ed0b19492feb Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 15 Oct 2006 05:02:09 +0000 Subject: Bug 281181: [SECURITY] It's way too easy to delete versions/components/milestones etc... - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attachment.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'attachment.cgi') diff --git a/attachment.cgi b/attachment.cgi index 431db444e..2b35b5e2c 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -825,7 +825,7 @@ sub delete_attachment { } # Now delete the token. - Bugzilla::Token::DeleteToken($token); + delete_token($token); # Paste the reason provided by the admin into a comment. AppendComment($bug_id, $user->id, $msg); @@ -835,7 +835,7 @@ sub delete_attachment { } else { # Create a token. - $token = Bugzilla::Token::IssueSessionToken('attachment' . $attach_id); + $token = issue_session_token('attachment' . $attach_id); $vars->{'a'} = $attachment; $vars->{'token'} = $token; -- cgit v1.2.3-24-g4f1b