Bug 21770: Allow html_entity for href

We certainly should not expect this filter to be used much for href, but
we have one occurrence that needs it.

Test plan:
t/template_filters.t and xt/find-missing-filters.t must return green

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-11-06 11:03:28 -03:00 committed by Nick Clemens
parent f9e83266d1
commit 6932e104f3
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ sub process_tt_block {
$filter ne 'html'
and (
$tt_block !~ m{\|}
or $tt_block =~ m{\|\s?html}
or ($tt_block =~ m{\|\s?html} and not $tt_block =~ m{\|\s?html_entity})
or $tt_block !~ m{\s*|\s*(uri|url)}
)
) {