]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix the links to reassigned packages in the html entries
authorDon Armstrong <don@donarmstrong.com>
Wed, 7 May 2014 01:41:53 +0000 (18:41 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 7 May 2014 01:41:53 +0000 (18:41 -0700)
Debbugs/CGI/Bugreport.pm

index f2ae9ac410c6ed98955d6016f1f6d76e6fbc879e..1518712e3a3fec462991b9add9ab10e39e957383 100644 (file)
@@ -381,7 +381,7 @@ sub handle_record{
                      {$1.$2.(bug_links(bug=>$3)).$4.
                           english_join([map {bug_links(bug=>$_)} (split /\,?\s+(?:and\s+)?/, $5)])}eo;
          # Add links to reassigned packages
-         $output =~ s{(Bug reassigned from package \`)([^']+?)((?:'|\&\#39;) to \`)([^']+?)((?:'|\&\#39;))}
+         $output =~ s{(Bug reassigned from package (?:[\`']|\&\#39;))([^']+?)((?:'|\&\#39;) to (?:[\`']|\&\#39;))([^']+?)((?:'|\&\#39;))}
          {$1.q(<a href=").html_escape(package_links(package=>$2)).qq(">$2</a>).$3.q(<a href=").html_escape(package_links(package=>$4)).qq(">$4</a>).$5}eo;
          if (defined $time) {
               $output .= ' ('.strftime('%a, %d %b %Y %T GMT',gmtime($time)).') ';