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