From 9c01b36a1f38185184bfaa502f04c2e3ec63022e Mon Sep 17 00:00:00 2001 From: Mason James Date: Thu, 25 Jun 2015 05:05:33 +1200 Subject: [PATCH] Revert "Bug 14408 Path traversal vulnerability" This reverts commit 0b7647eff31c85d8f7e1e5a50fd82d3b94eec816. --- C4/Auth.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 2c3fb7959f..34d63129e3 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -137,10 +137,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