]> git.donarmstrong.com Git - debbugs.git/commitdiff
Call encode_utf8 in generate_package_info
authorDon Armstrong <don@donarmstrong.com>
Mon, 18 Jul 2016 02:36:07 +0000 (19:36 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 18 Jul 2016 02:36:07 +0000 (19:36 -0700)
- This change fixes the issue where package maintainers names were
  double encoded

Debbugs/CGI/Pkgreport.pm

index 523dbbb90a6a909d9043a4e949836dc9c35624b6..2d0de6f6c74803a704948c31e9fb7ba1961e34ce 100644 (file)
@@ -41,6 +41,7 @@ use Debbugs::Bugs qw(bug_filter);
 use Debbugs::Packages qw(:mapping);
 
 use Debbugs::Text qw(:templates);
+use Encode qw(encode_utf8);
 
 use POSIX qw(strftime);
 
@@ -167,7 +168,7 @@ sub generate_package_info{
          printf {$output} "<a href=\"%s\">report it</a>.</p>\n",
               html_escape("http://$config{web_domain}/Reporting$config{html_suffix}");
      }
-     return $output_scalar;
+     return encode_utf8($output_scalar);
 }