summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Template.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 6de927b9a..653a8c51f 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -367,6 +367,8 @@ sub get_bug_link {
my $linkified;
$template->process('bug/link.html.tmpl',
{ bug => $bug, link_text => $link_text, %$options }, \$linkified);
+ $linkified =~ s/\n//g; # strip newlines to prevent markdown conflicts
+ $linkified =~ s/\|/|/g; # escape '|', it confuses markdown tables
return $linkified;
}