diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-05-27 01:47:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-27 01:47:25 +0200 |
commit | b1aece569468612c9a69332fc7a530749b39e977 (patch) | |
tree | 56a11ee7451f1c681ef7cb91d4cdfd0a3720972f /Bugzilla/WebService | |
parent | a4da180a2d7ae9c396dca20e4beae7177524bf59 (diff) | |
download | bugzilla-b1aece569468612c9a69332fc7a530749b39e977.tar.gz bugzilla-b1aece569468612c9a69332fc7a530749b39e977.tar.xz |
Bug 1361376 - Bugzilla::WebService::Bug: render_comment() should not pass a literal template string to call quoteUrls() (#76)
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r-- | Bugzilla/WebService/Bug.pm | 9 |
1 files changed, 1 insertions, 8 deletions
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 }; } |