Bugzilla – Attachment 40525 Details for
Bug 14439
Typo in Bug 14408 regexp
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 14439: Typo in Bug 14408 regexp
SIGNED-OFF-Bug-14439-Typo-in-Bug-14408-regexp.patch (text/plain), 1.01 KB, created by
Tomás Cohen Arazi (tcohen)
on 2015-06-23 14:04:20 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 14439: Typo in Bug 14408 regexp
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2015-06-23 14:04:20 UTC
Size:
1.01 KB
patch
obsolete
>From 328b9f703f07f395cdc4154cbcf03de4bc48caf7 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 23 Jun 2015 15:50:39 +0200 >Subject: [PATCH] [SIGNED OFF] 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 <tomascohen@theke.io> >--- > C4/Auth.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 34c3f91..268ef35 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( >-- >2.4.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14439
:
40524
|
40525
|
40528
|
40529
|
40530
|
40531
|
40532