From ed02cbe56c6c3402675478ef50eac2ec40fcc485 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Nov 2018 11:03:28 -0300 Subject: [PATCH] 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 --- t/lib/QA/TemplateFilters.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/lib/QA/TemplateFilters.pm b/t/lib/QA/TemplateFilters.pm index b1f444e86d..e73d45a917 100644 --- a/t/lib/QA/TemplateFilters.pm +++ b/t/lib/QA/TemplateFilters.pm @@ -187,7 +187,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)} ) ) { -- 2.17.2 (Apple Git-113)