Bugzilla – Attachment 41488 Details for
Bug 14679
die with bad template path on item search because template file name has a period which is not a safe character
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
koha-bom-get_template_and_user-regex.patch
koha-bom-get_template_and_user-regex.patch (text/plain), 504 bytes, created by
Anthony Moore
on 2015-08-14 06:11:58 UTC
(
hide
)
Description:
koha-bom-get_template_and_user-regex.patch
Filename:
MIME Type:
Creator:
Anthony Moore
Created:
2015-08-14 06:11:58 UTC
Size:
504 bytes
patch
obsolete
>diff -ubBr koha-3.18.08.orig/C4/Auth.pm koha-3.18.08/C4/Auth.pm >--- koha-3.18.08.orig/C4/Auth.pm 2015-08-14 06:09:28.000000000 +0000 >+++ koha-3.18.08/C4/Auth.pm 2015-08-14 06:10:04.000000000 +0000 >@@ -157,7 +157,7 @@ > > C4::Context->interface( $in->{type} ); > >- my $safe_chars = 'a-zA-Z0-9_\-\/'; >+ my $safe_chars = 'a-zA-Z0-9_\.\-\/'; > die "bad template path" unless $in->{'template_name'} =~ m/^[$safe_chars]+\.tt$/ig; #sanitize input > > $in->{'authnotrequired'} ||= 0; > >
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 14679
: 41488