Mageia Bugzilla – Attachment 11566 Details for
Bug 26386
Template-Toolkit 2.28 doesn't work correctly with perl 5.26 or newer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Fix taint issue in Template/Provider.pm
TT_taint.diff (text/plain), 397 bytes, created by
Frédéric "LpSolit" Buclin
on 2020-03-28 13:20:02 CET
(
hide
)
Description:
Fix taint issue in Template/Provider.pm
Filename:
MIME Type:
Creator:
Frédéric "LpSolit" Buclin
Created:
2020-03-28 13:20:02 CET
Size:
397 bytes
patch
obsolete
>--- Template/Provider.pm. 2020-03-28 13:15:17.771632599 +0100 >+++ Template/Provider.pm 2020-03-27 22:25:49.197581704 +0100 >@@ -577,6 +577,8 @@ sub _load_compiled { > # one needs to care about slash direction is when dealing > # with Module::Name -> Module/Name.pm translation. > my $fpath = File::Spec->rel2abs( $file ); >+ $fpath =~ /^(.*)$/s; >+ $fpath = $1; > > my $compiled; >
--- Template/Provider.pm. 2020-03-28 13:15:17.771632599 +0100 +++ Template/Provider.pm 2020-03-27 22:25:49.197581704 +0100 @@ -577,6 +577,8 @@ sub _load_compiled { # one needs to care about slash direction is when dealing # with Module::Name -> Module/Name.pm translation. my $fpath = File::Spec->rel2abs( $file ); + $fpath =~ /^(.*)$/s; + $fpath = $1; my $compiled;
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26386
: 11566