Bugzilla – Attachment 40825 Details for
Bug 14467
Security updates break some Koha plugins
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14467 - Security updates break some Koha plugins
Bug-14467---Security-updates-break-some-Koha-plugi.patch (text/plain), 2.08 KB, created by
Kyle M Hall (khall)
on 2015-07-07 15:43:46 UTC
(
hide
)
Description:
Bug 14467 - Security updates break some Koha plugins
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-07-07 15:43:46 UTC
Size:
2.08 KB
patch
obsolete
>From fb6562c1937196756883503670aaf765f850db39 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 25 Jun 2015 16:41:23 -0400 >Subject: [PATCH] Bug 14467 - Security updates break some Koha plugins > >The new security updates break previously functioning plugins, most >notably the cover flow plugin and the Ebsco EDS plugin. > >Test Plan: >1) Install and configure the cover flow plugin ( http://bywatersolutions.com/koha-plugins/ ) >2) Note that attempting to access coverflow.pl from the OPAC results in an error >3) Apply this patch >4) Note that coverflow.pl now output html again > >Signed-off-by: Nick Clemens <nick@quecheelibrary.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> >--- > C4/Installer/PerlDependencies.pm | 5 +++++ > Koha/Plugins/Base.pm | 3 ++- > 2 files changed, 7 insertions(+), 1 deletions(-) > >diff --git a/C4/Installer/PerlDependencies.pm b/C4/Installer/PerlDependencies.pm >index 9ddeca8..0ec6c2d 100644 >--- a/C4/Installer/PerlDependencies.pm >+++ b/C4/Installer/PerlDependencies.pm >@@ -647,6 +647,11 @@ our $PERL_DEPS = { > 'required' => '0', > 'min_ver' => '3.9', > }, >+ 'Cwd' => { >+ 'usage' => 'Plugins', >+ 'required' => '0', >+ 'min_ver' => '3.47', >+ }, > 'File::Slurp' => { > 'usage' => 'Command line scripts', > 'required' => '0', >diff --git a/Koha/Plugins/Base.pm b/Koha/Plugins/Base.pm >index f60343a..55e1e7b 100644 >--- a/Koha/Plugins/Base.pm >+++ b/Koha/Plugins/Base.pm >@@ -20,6 +20,7 @@ package Koha::Plugins::Base; > use Modern::Perl; > > use Module::Pluggable require => 1; >+use Cwd qw(abs_path); > > use base qw{Module::Bundled::Files}; > >@@ -106,7 +107,7 @@ sub get_template { > require C4::Auth; > > my ( $template, $loggedinuser, $cookie ) = C4::Auth::get_template_and_user( >- { template_name => $self->mbf_path( $args->{'file'} ), >+ { template_name => abs_path( $self->mbf_path( $args->{'file'} ) ), > query => $self->{'cgi'}, > type => "intranet", > authnotrequired => 1, >-- >1.7.2.5
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 14467
:
40681
|
40742
|
40763
|
40825
|
40826