]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1361376 - Bugzilla::WebService::Bug: render_comment() should not pass a literal...
authorDylan William Hardison <dylan@hardison.net>
Fri, 26 May 2017 23:47:25 +0000 (19:47 -0400)
committerGitHub <noreply@github.com>
Fri, 26 May 2017 23:47:25 +0000 (19:47 -0400)
Bugzilla/WebService/Bug.pm

index bbab65137c6df734620fd51ff73b68a5a00b5a72..78545e129cc9bc722e200216df277ae90a586fdd 100644 (file)
@@ -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 };
 }