From 944c786441c2fccaf786220c33a0f141cc94b999 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 23 Jun 2015 17:49:30 +0200 Subject: [PATCH] Revert "Bug 14408: Add tests to get_template_and_user" This reverts commit 656b2dc36c324b7368c4541ff6288c9451a774bb. --- t/db_dependent/Auth.t | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t index 279d8a5e41..6a100bc5dc 100644 --- a/t/db_dependent/Auth.t +++ b/t/db_dependent/Auth.t @@ -8,8 +8,7 @@ use Modern::Perl; use CGI; use Test::MockModule; use List::MoreUtils qw/all any none/; -use Test::More tests => 9; -use Test::Warn; +use Test::More tests => 6; use C4::Members; use Koha::AuthUtils qw/hash_password/; @@ -106,27 +105,6 @@ $dbh->{RaiseError} = 1; ok( ( any { $_->name eq 'KohaOpacLanguage' and $_->value eq 'en' } @$cookies ), 'BZ9735: invalid language, then default to en'); - - for my $template_name ( - qw( - ../../../../../../../../../../../../../../../etc/passwd - test/../../../../../../../../../../../../../../etc/passwd - /etc/passwd - ) - ) { - eval { - ( $template, $loggedinuser, $cookies ) = get_template_and_user( - { - template_name => $template_name, - query => $query, - type => "intranet", - authnotrequired => 1, - flagsrequired => { catalogue => 1 }, - } - ); - }; - like ( $@, qr(^bad template path), 'The file $template_name should not be accessible' ); - } } my $hash1 = hash_password('password'); -- 2.39.5