From 789593dcbc1664a65d5b4a5e889747ea6834e815 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Thu, 25 Jun 2015 09:35:39 +0200 Subject: [PATCH] Revert "Bug 14408 Path traversal vulnerability" This reverts commit 7c6ec195181b5cea3f108285f16afb1cd1654783. --- C4/Auth.pm | 4 ---- 1 file changed, 4 deletions(-) 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'}, -- 2.39.5