Revert "Bug 14408: Allow tmpl and empty in template paths"
This reverts commit 4e1b447b4c.
This commit is contained in:
parent
910951512b
commit
1f7fa4fadc
|
|
@ -140,7 +140,7 @@ sub get_template_and_user {
|
|||
my ( $user, $cookie, $sessionID, $flags );
|
||||
|
||||
my $safe_chars = 'a-zA-Z0-9_\-\/';
|
||||
die "bad template path" if $in->{'template_name'} && $in->{'template_name'} !~ m/^[$safe_chars]+\.(tt|tmpl)$/ig; #sanitize input
|
||||
die "bad template path" unless $in->{'template_name'} =~ m/^[$safe_chars]+.tt?$/ig; #sanitize input
|
||||
|
||||
$in->{'authnotrequired'} ||= 0;
|
||||
my $template = C4::Templates::gettemplate(
|
||||
|
|
|
|||
Loading…
Reference in New Issue