Bug 38467: Make uri and url filters rfc3986 when using C4::Template

This change invokes Template::Filters->use_rfc3986 in the C4::Template
module.

Test plan:
0. Apply the patch
1. Note that "uri" and "url" filters now escape single quotes

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
This commit is contained in:
David Cook 2024-11-18 05:37:18 +00:00 committed by John Doe
parent a5afd9c9c8
commit 75e05bdd60
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ C4::Templates - Object for manipulating templates for use with Koha
use base qw(Class::Accessor);
use Template;
use Template::Filters;
use C4::Languages qw( get_bidi getTranslatedLanguages regex_lang_subtags );
use C4::Context;
@ -41,6 +42,7 @@ use Koha::Exceptions;
__PACKAGE__->mk_accessors(qw( theme activethemes preferredtheme lang filename htdocs interface vars));
Template::Filters->use_rfc3986();
sub new {
my $class = shift;