Bug 22223: t::lib::QA::TemplateFilters missing built-in TT filter "safe_url" causes false warnings

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit fe495d19df)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
David Cook 2024-11-07 01:37:14 +00:00 committed by Lucas Gass
parent 629d2a6f6c
commit 4023df1789
1 changed files with 3 additions and 0 deletions

View File

@ -160,6 +160,9 @@ sub process_tt_block {
# Already has trim filter
or $tt_block =~ m{\|\s?trim}
# Already has safe_url filter
or $tt_block =~ m{\|\s?safe_url}
# Specific for [% foo UNLESS bar %]
or $tt_block =~ m{^(?<before>\S+)\s+UNLESS\s+(?<after>\S+)}
;