# patrons still need to be able to print receipts
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "/sco/printslip.tt",
template_name => "sco/printslip.tt",
query => $input,
type => "opac",
}
use Koha::Patrons;
my $input = new CGI;
my $template_path = $input->param('template_path');
exit unless $input->param('template_path');
if( !$template_path || $template_path =~ /^\/|\.\./ ) {
# Do not allow absolute paths here
warn 'Bad template path';
exit;
my ($template, $user, $cookie) = get_template_and_user({
template_name => scalar $input->param('template_path'),
template_name => $template_path,
type => "intranet",
authnotrequired => 0,
-