Revert "Bug 14408 Path traversal vulnerability"
This reverts commit a1e0768ceb.
This commit is contained in:
parent
5b03b9716b
commit
f462209e86
|
|
@ -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'},
|
||||
|
|
|
|||
Loading…
Reference in New Issue