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: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
e4bf517b55
commit
4b401010fb
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
@ -40,6 +41,8 @@ use Koha::Exceptions;
|
|||
|
||||
__PACKAGE__->mk_accessors(qw( theme activethemes preferredtheme lang filename htdocs interface vars));
|
||||
|
||||
Template::Filters->use_rfc3986();
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
my $interface = shift;
|
||||
|
|
Loading…
Reference in a new issue