Revert "Bug 14408 Path traversal vulnerability"

This reverts commit a1e0768ceb.
This commit is contained in:
Liz Rea 2015-06-23 09:57:18 +12:00
parent 5b03b9716b
commit f462209e86
1 changed files with 0 additions and 4 deletions

View File

@ -157,10 +157,6 @@ sub get_template_and_user {
C4::Context->interface( $in->{type} );
# Sanitize template path to avoid path traversal
$in->{template_name} =~ s|^/||;
$in->{template_name} =~ s|\.\.||g;
$in->{'authnotrequired'} ||= 0;
my $template = C4::Templates::gettemplate(
$in->{'template_name'},