Bugzilla – Attachment 127057 Details for
Bug 29350
TT method 'delete' don't need to be escaped
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29350: Don't need to escape the 'delete' TT methods
Bug-29350-Dont-need-to-escape-the-delete-TT-method.patch (text/plain), 1.18 KB, created by
Jonathan Druart
on 2021-10-28 13:30:50 UTC
(
hide
)
Description:
Bug 29350: Don't need to escape the 'delete' TT methods
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-28 13:30:50 UTC
Size:
1.18 KB
patch
obsolete
>From 0cae882dbd3bfbff8417cff9d5222f153ad78779 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 28 Oct 2021 15:27:00 +0200 >Subject: [PATCH] Bug 29350: Don't need to escape the 'delete' TT methods > >Will be needed by bug 22605. >--- > t/lib/QA/TemplateFilters.pm | 1 + > t/template_filters.t | 2 ++ > 2 files changed, 3 insertions(+) > >diff --git a/t/lib/QA/TemplateFilters.pm b/t/lib/QA/TemplateFilters.pm >index 4efa714c376..d341d721993 100644 >--- a/t/lib/QA/TemplateFilters.pm >+++ b/t/lib/QA/TemplateFilters.pm >@@ -30,6 +30,7 @@ our @tt_directives = ( > > our @tt_methods = ( > qr{\.push\(}, >+ qr{\.delete\(}, > ); > > sub fix_filters { >diff --git a/t/template_filters.t b/t/template_filters.t >index b479faa2920..ffc86843e8a 100755 >--- a/t/template_filters.t >+++ b/t/template_filters.t >@@ -307,10 +307,12 @@ subtest 'Do not escape TT methods' => sub { > plan tests => 2; > my $input = <<INPUT; > [% my_array.push(a_var) %] >+[% my_hash.delete(a_key) %] > INPUT > > my $expected = <<EXPECTED; > [% my_array.push(a_var) %] >+[% my_hash.delete(a_key) %] > EXPECTED > > my $new_content = t::lib::QA::TemplateFilters::fix_filters($input); >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29350
: 127057