diff --git a/C4/Auth.pm b/C4/Auth.pm index 59d1e31d60..164092d01e 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -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'},