Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with Koha Community 17.11 #12

Closed
ghost opened this issue Dec 28, 2017 · 1 comment
Closed

Incompatible with Koha Community 17.11 #12

ghost opened this issue Dec 28, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 28, 2017

The template loading code of KC 17.11 was changed to reject parent path access attempts. This plugin now triggers a "bad template path" exception when the report.tt template is loaded. As a result, the coverflow widget does not make it to the browser.

The root cause is the following code in Coverflow/coverflow.pl:
use FindBin; # locate this script
use lib "$FindBin::Bin/../../../../../"; # use the parent directory
The /../../../../../ string is injected in the template lookup path, triggering the rejection.

Replacing the above two lines with the code below makes the plugin operational again:
use C4::Context;
use lib C4::Context->config("pluginsdir");

@kidclamp
Copy link
Contributor

kidclamp commented Jan 8, 2018

Thanks for the tip, code pushed today :-)

@kidclamp kidclamp closed this as completed Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant