From 94c66f92ee11b81889dd6550acd664f2344cd19f Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 23 Jun 2015 17:49:32 +0200 Subject: [PATCH] Revert "Bug 14408: Path Traversal error" This reverts commit 2870086da0070dad38bdb4a22be9e07dd1c8c713. --- C4/Auth.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 23311f0083..164092d01e 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -139,9 +139,6 @@ sub get_template_and_user { my $in = shift; my ( $user, $cookie, $sessionID, $flags ); - my $safe_chars = 'a-zA-Z_\-\/'; - die "bad template path" unless $in->{'template_name'} =~ m/^[$safe_chars]+.tt?$/ig; #sanitize input - $in->{'authnotrequired'} ||= 0; my $template = C4::Templates::gettemplate( $in->{'template_name'}, -- 2.39.5