Bugzilla – Attachment 86195 Details for
Bug 22466
TT methods must not be escaped
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22466: Do not ask for TT methods to be filtered
Bug-22466-Do-not-ask-for-TT-methods-to-be-filtered.patch (text/plain), 1.06 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-03-06 16:00:22 UTC
(
hide
)
Description:
Bug 22466: Do not ask for TT methods to be filtered
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-03-06 16:00:22 UTC
Size:
1.06 KB
patch
obsolete
>From 5abbe201465bcc55d702a906671ebd7e257d45de Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 6 Mar 2019 11:59:55 -0300 >Subject: [PATCH] Bug 22466: Do not ask for TT methods to be filtered > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/lib/QA/TemplateFilters.pm | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/t/lib/QA/TemplateFilters.pm b/t/lib/QA/TemplateFilters.pm >index 0fce6da9b2..dad22df4b8 100644 >--- a/t/lib/QA/TemplateFilters.pm >+++ b/t/lib/QA/TemplateFilters.pm >@@ -27,6 +27,10 @@ our @tt_directives = ( > qr{^\s*LAST}, > ); > >+our @tt_methods = ( >+ qr{\.push\(}, >+); >+ > sub fix_filters { > return _process_tt_content( @_ )->{new_content}; > } >@@ -128,6 +132,9 @@ sub process_tt_block { > # It's a TT directive, no filters needed > grep { $tt_block =~ $_ } @tt_directives > >+ # It's a TT method >+ or grep { $tt_block =~ $_ } @tt_methods >+ > # It is a comment > or $tt_block =~ m{^\#} > >-- >2.21.0
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 22466
:
86185
|
86186
|
86187
|
86191
|
86192
|
86193
|
86194
| 86195 |
86196