From 141cebb48e58ad5913471e5f88034462118d6681 Mon Sep 17 00:00:00 2001
From: Don Armstrong <don@donarmstrong.com>
Date: Fri, 8 Aug 2008 20:35:16 -0700
Subject: [PATCH]  * fix misusage of bug_links in Debbugs::CGI::Bugreport

---
 Debbugs/CGI/Bugreport.pm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/Debbugs/CGI/Bugreport.pm b/Debbugs/CGI/Bugreport.pm
index f86b2fc4..f2f26bd8 100644
--- a/Debbugs/CGI/Bugreport.pm
+++ b/Debbugs/CGI/Bugreport.pm
@@ -329,8 +329,17 @@ sub handle_record{
 	  if (defined $time) {
 	       $output .= ' ('.strftime('%a, %d %b %Y %T GMT',gmtime($time)).') ';
 	  }
-	  $output .= '<a href="' . html_escape(bug_links($bug_number, options => {msg => ($msg_number+1)},links_only => 1)) . '">Full text</a> and <a href="' .
-	       html_escape(html_escape(bug_links($bug_number, options => {msg => ($msg_number+1),mbox => 'yes'},links_only => 1)) . '">rfc822 format</a> available.';
+	  $output .= '<a href="' .
+	       html_escape(bug_links(bug => $bug_number,
+				     options => {msg => ($msg_number+1)},
+				     links_only => 1,
+				    )
+			  ) . '">Full text</a> and <a href="' .
+			       html_escape(bug_links(bug => $bug_number,
+						     options => {msg => ($msg_number+1),
+								 mbox => 'yes'},
+						     links_only => 1)
+					  ) . '">rfc822 format</a> available.';
 
 	  $output = qq(<div class="$class"><hr>\n<a name="$msg_number"></a>\n) . $output . "</div>\n";
      }
-- 
2.39.5