From 6932e104f31bc80e7320fe9f5d48ed16d5fb4d3a 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 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens --- 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 f2009cc929..467010e85a 100644 --- a/t/lib/QA/TemplateFilters.pm +++ b/t/lib/QA/TemplateFilters.pm @@ -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)} ) ) { -- 2.39.5