summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2015-04-01 16:37:39 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-04-01 16:37:39 +0200
commit1fbcede24288ad8abdeaf49255e5c0996ac2df4c (patch)
tree678dd12a916497c779d768c459ef7ad972610d8a /Bugzilla
parentf293fdf225ed0745de63f9f205407ccc2b8a44d4 (diff)
downloadbugzilla-1fbcede24288ad8abdeaf49255e5c0996ac2df4c.tar.gz
bugzilla-1fbcede24288ad8abdeaf49255e5c0996ac2df4c.tar.xz
Bug 1093868: Markdown text rendering in comments is broken after commit from bug 1059684
r=dkl,a=glob
Diffstat (limited to 'Bugzilla')
-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/\|/&#124;/g; # escape '|', it confuses markdown tables
return $linkified;
}