]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 802204 (CVE-2012-4197): [SECURITY] Marking an attachment you cannot see as obsole...
authorFrédéric Buclin <LpSolit@gmail.com>
Tue, 13 Nov 2012 17:23:13 +0000 (18:23 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 13 Nov 2012 17:23:13 +0000 (18:23 +0100)
r=gerv a=LpSolit

Bugzilla/Attachment.pm
template/en/default/global/code-error.html.tmpl

index b1f47d0cd60503264e8e117fd7797e9232d3b236..69939a657ddde9045e690ff6c720afa81a400a0e 100644 (file)
@@ -723,11 +723,8 @@ sub validate_obsolete {
         $attachment->validate_can_edit($bug->product_id)
           || ThrowUserError('illegal_attachment_edit', { attach_id => $attachment->id });
 
-        $vars->{'description'} = $attachment->description;
-
         if ($attachment->bug_id != $bug->bug_id) {
             $vars->{'my_bug_id'} = $bug->bug_id;
-            $vars->{'attach_bug_id'} = $attachment->bug_id;
             ThrowCodeError('mismatched_bug_ids_on_obsolete', $vars);
         }
 
index 73a602b8700a320e2b2788558c1ae7d7b828833c..24e46fb1475a422b046b960f1257f500c01067ab 100644 (file)
     setting in [% constants.bz_locations.localconfig FILTER html %].
 
   [% ELSIF error == "mismatched_bug_ids_on_obsolete" %]
-    Attachment [% attach_id FILTER html %] ([% description FILTER html %]) 
-    is attached to [% terms.bug %] [%+ attach_bug_id FILTER html %], 
+    Attachment [% attach_id FILTER html %] is attached to another [% terms.bug %],
     but you tried to flag it as obsolete while creating a new attachment to 
     [%+ terms.bug %] [%+ my_bug_id FILTER html %].