Commit ccdd4db8 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 542464: Dependency graphs cannot be displayed when bug summaries contain UTF8 characters

r/a=mkanat
parent bec277d2
......@@ -58,7 +58,7 @@ local our (%seen, %edgesdone, %bugtitles);
sub CreateImagemap {
my $mapfilename = shift;
my $map = "<map name=\"imagemap\">\n";
my $default;
my $default = "";
open MAP, "<$mapfilename";
while(my $line = <MAP>) {
......@@ -206,6 +206,10 @@ foreach my $k (keys(%seen)) {
my @params;
if ($summary ne "" && $cgi->param('showsummary')) {
# Wide characters cause GraphViz to die.
if (Bugzilla->params->{'utf8'}) {
utf8::encode($summary) if utf8::is_utf8($summary);
}
$summary =~ s/([\\\"])/\\$1/g;
push(@params, qq{label="$k\\n$summary"});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment