]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1093868: Markdown text rendering in comments is broken after commit from bug...
authorAlbert Ting <altlist@gmail.com>
Wed, 1 Apr 2015 14:37:39 +0000 (15:37 +0100)
committerDavid Lawrence <dkl@mozilla.com>
Wed, 1 Apr 2015 14:37:39 +0000 (15:37 +0100)
r=dkl,a=glob

Bugzilla/Template.pm

index 6de927b9ad5f4e02e5d3214775de5c412d1daf99..653a8c51f80b09fddd822c6015551c55df84d883 100644 (file)
@@ -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;
 }