Lines 159-165
sub get_template_and_user {
Link Here
|
159 |
C4::Context->interface( $in->{type} ); |
159 |
C4::Context->interface( $in->{type} ); |
160 |
|
160 |
|
161 |
my $safe_chars = 'a-zA-Z0-9_\-\/'; |
161 |
my $safe_chars = 'a-zA-Z0-9_\-\/'; |
162 |
die "bad template path" unless $in->{'template_name'} =~ m/^[$safe_chars]+.tt?$/ig; #sanitize input |
162 |
die "bad template path" unless $in->{'template_name'} =~ m/^[$safe_chars]+\.tt$/ig; #sanitize input |
163 |
|
163 |
|
164 |
$in->{'authnotrequired'} ||= 0; |
164 |
$in->{'authnotrequired'} ||= 0; |
165 |
my $template = C4::Templates::gettemplate( |
165 |
my $template = C4::Templates::gettemplate( |
166 |
- |
|
|