From f462209e86e30e8ea23da67fb367c77c6d33be88 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Tue, 23 Jun 2015 09:57:18 +1200 Subject: [PATCH] Revert "Bug 14408 Path traversal vulnerability" This reverts commit a1e0768ceb728f0019086050837884d29e498dfe. --- C4/Auth.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index a2aa8aa132..06525c135b 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -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'}, -- 2.39.5