From b1aece569468612c9a69332fc7a530749b39e977 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 26 May 2017 19:47:25 -0400 Subject: Bug 1361376 - Bugzilla::WebService::Bug: render_comment() should not pass a literal template string to call quoteUrls() (#76) --- Bugzilla/WebService/Bug.pm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index bbab65137..78545e129 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -360,14 +360,7 @@ sub render_comment { Bugzilla->switch_to_shadow_db(); my $bug = $params->{id} ? Bugzilla::Bug->check($params->{id}) : undef; - my $tmpl = '[% text FILTER quoteUrls(bug) %]'; - my $html; - my $template = Bugzilla->template; - $template->process( - \$tmpl, - { bug => $bug, text => $params->{text}}, - \$html - ); + my $html = Bugzilla::Template::quoteUrls($params->{text}, $bug); return { html => $html }; } -- cgit v1.2.3-24-g4f1b