From 42d5e45576b519f19879d2b0eba529932da81644 Mon Sep 17 00:00:00 2001 From: Koosha KM Date: Tue, 14 Oct 2014 20:42:46 +0000 Subject: Bug 1059723: Reply button should become AJAX-based r=dkl,a=sgreen --- Bugzilla/Template.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index ca467577f..660767afd 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -148,10 +148,11 @@ sub get_format { # If you want to modify this routine, read the comments carefully sub quoteUrls { - my ($text, $bug, $comment, $user, $bug_link_func) = @_; + my ($text, $bug, $comment, $user, $bug_link_func, $for_markdown) = @_; return $text unless $text; $user ||= Bugzilla->user; $bug_link_func ||= \&get_bug_link; + $for_markdown ||= 0; # We use /g for speed, but uris can have other things inside them # (http://foo/bug#3 for example). Filtering that out filters valid @@ -222,10 +223,11 @@ sub quoteUrls { $text = html_quote($text); - # Color quoted text - $text =~ s~^(>.+)$~$1~mg; - $text =~ s~\n~\n~g; - + unless ($for_markdown) { + # Color quoted text + $text =~ s~^(>.+)$~$1~mg; + $text =~ s~\n~\n~g; + } # mailto: # Use | so that $1 is defined regardless # @ is the encoded '@' character. -- cgit v1.2.3-24-g4f1b