From: Fridolin Somers Date: Tue, 23 Jun 2015 13:50:39 +0000 (+0200) Subject: Bug 14439: Typo in Bug 14408 regexp X-Git-Tag: v3.22.00-beta~952 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=cb44a8de3a6fbe7ecf2d349a6cab44ace0dc7165;p=koha_ffzg Bug 14439: Typo in Bug 14408 regexp In Bug 14408 first patch, the regexp used needs an escape on dot and does not need an ending "?" Test plan : - prove t/db_dependent/Auth.t Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- diff --git a/C4/Auth.pm b/C4/Auth.pm index 34c3f91ffe..268ef3544b 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -159,7 +159,7 @@ sub get_template_and_user { C4::Context->interface( $in->{type} ); my $safe_chars = 'a-zA-Z0-9_\-\/'; - die "bad template path" unless $in->{'template_name'} =~ m/^[$safe_chars]+.tt?$/ig; #sanitize input + die "bad template path" unless $in->{'template_name'} =~ m/^[$safe_chars]+\.tt$/ig; #sanitize input $in->{'authnotrequired'} ||= 0; my $template = C4::Templates::gettemplate(