Revert "Bug 14408 Path traversal vulnerability"

This reverts commit 7c6ec19518.
This commit is contained in:
Fridolin Somers 2015-06-25 09:35:39 +02:00
parent e52c242486
commit 789593dcbc
1 changed files with 0 additions and 4 deletions

View File

@ -139,10 +139,6 @@ sub get_template_and_user {
my $in = shift;
my ( $user, $cookie, $sessionID, $flags );
# 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'},