Bugzilla – Attachment 176137 Details for
Bug 38467
Template::Toolkit filters can create risky Javascript when not using RFC3986
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38467: (follow-up) Fix test
Bug-38467-follow-up-Fix-test.patch (text/plain), 1009 bytes, created by
Julian Maurice
on 2025-01-03 16:40:45 UTC
(
hide
)
Description:
Bug 38467: (follow-up) Fix test
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2025-01-03 16:40:45 UTC
Size:
1009 bytes
patch
obsolete
>From 608c15372a51b350d703aaa2cffeece7c8afdceb Mon Sep 17 00:00:00 2001 >From: Phil Ringnalda <phil@chetcolibrary.org> >Date: Fri, 13 Dec 2024 10:12:36 -0800 >Subject: [PATCH] Bug 38467: (follow-up) Fix test > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >--- > t/db_dependent/Templates.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/Templates.t b/t/db_dependent/Templates.t >index aa1785d226..a37587f42f 100755 >--- a/t/db_dependent/Templates.t >+++ b/t/db_dependent/Templates.t >@@ -144,7 +144,7 @@ subtest "Absolute path change in _get_template_file" => sub { > subtest "Template::Toolkit uses RFC3986" => sub { > plan tests => 1; > >- my $s = q{console.log("alert('boo!')");}; >+ my $s = q{"'}; > my ( $fh, $fn ) = tempfile( SUFFIX => '.tt', UNLINK => 1, DIR => C4::Context::temporary_directory ); > print $fh q{URI=[% filter_me | uri %], URL=[% filter_me | url %]}; > close $fh; >-- >2.39.2
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 38467
:
174659
|
174660
|
174762
|
174819
|
175465
|
175466
|
175685
|
175686
|
175687
|
175688
|
176135
|
176136
| 176137 |
176138
|
179195