]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 281358: Attachment links in bugmail are different from the link in show_bug.cgi...
authorlpsolit%gmail.com <>
Thu, 2 Mar 2006 06:46:21 +0000 (06:46 +0000)
committerlpsolit%gmail.com <>
Thu, 2 Mar 2006 06:46:21 +0000 (06:46 +0000)
Bugzilla/BugMail.pm
showattachment.cgi
template/en/default/attachment/show-multiple.html.tmpl
template/en/default/bug/activity/table.html.tmpl

index da4005730245a6c095e9d66ae6288f1bbb0cb058..e20fb5f61173db49ecf0f1aa7440e1714a28e12a 100644 (file)
@@ -593,7 +593,7 @@ sub sendMail {
         my $showattachurlbase =
             Param('urlbase') . "attachment.cgi?id=";
 
-        $newcomments =~ s/(Created an attachment \(id=([0-9]+)\))/$1\n --> \(${showattachurlbase}$2&action=view\)/g;
+        $newcomments =~ s/(Created an attachment \(id=([0-9]+)\))/$1\n --> \(${showattachurlbase}$2\)/g;
     }
 
     $substs{"neworchanged"} = $isnew ? 'New: ' : '';
index 82fc1ba9a9c91bbd6d013884be2ac92d89a6d78f..f535d5c9dacee9925c8a392e10a8867382202278 100755 (executable)
@@ -34,7 +34,7 @@ my $id = $cgi->param('attach_id');
 detaint_natural($id) if defined $id;
 $id ||= "";
 
-print $cgi->redirect(-location=>"attachment.cgi?id=$id&action=view",
+print $cgi->redirect(-location=>"attachment.cgi?id=$id",
                      -status=>'301 Permanent Redirect');
 
 exit;
index 03ad0ea47086b246882a0b143497e0c181e9d545..ca2690c6e847c155c8fc21e71ca8696e078ede9b 100644 (file)
   </table>
 
   [% IF a.isviewable %]
-    <iframe src="attachment.cgi?id=[% a.attachid %]&amp;action=view" width="75%" height="350">
+    <iframe src="attachment.cgi?id=[% a.attachid %]" width="75%" height="350">
       <b>You cannot view the attachment on this page because your browser does not support IFRAMEs.
-      <a href="attachment.cgi?id=[% a.attachid %]&amp;action=view">View the attachment on a separate page</a>.</b>
+      <a href="attachment.cgi?id=[% a.attachid %]">View the attachment on a separate page</a>.</b>
     </iframe>
   [% ELSE %]
     <p><b>
       Attachment cannot be viewed because its MIME type is not text/*, image/*, or application/vnd.mozilla.*.
-      <a href="attachment.cgi?id=[% a.attachid %]&amp;action=view">Download the attachment instead</a>.
+      <a href="attachment.cgi?id=[% a.attachid %]">Download the attachment instead</a>.
     </b></p>
   [% END %]
   </div>
index 48fafe847bbb424ca5086fe15a995601730d2cf4..2a96b8689f29a14862363fa76575682d91e62851 100644 (file)
@@ -70,7 +70,7 @@
           [% "</tr><tr>" IF loop.index > 0 %]
             <td>
               [% IF change.attachid %]
-                <a href="attachment.cgi?id=[% change.attachid %]&amp;action=view">
+                <a href="attachment.cgi?id=[% change.attachid %]">
                 Attachment #[% change.attachid %]</a>
               [% END %]
               [% change.field %]