projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
944c786
)
Revert "Bug 14408: Path Traversal error"
author
Fridolin Somers
<fridolin.somers@biblibre.com>
Tue, 23 Jun 2015 15:49:32 +0000 (17:49 +0200)
committer
Fridolin Somers
<fridolin.somers@biblibre.com>
Tue, 23 Jun 2015 15:49:32 +0000 (17:49 +0200)
This reverts commit
2870086da0070dad38bdb4a22be9e07dd1c8c713
.
C4/Auth.pm
patch
|
blob
|
history
diff --git
a/C4/Auth.pm
b/C4/Auth.pm
index
23311f0
..
164092d
100644
(file)
--- a/
C4/Auth.pm
+++ b/
C4/Auth.pm
@@
-139,9
+139,6
@@
sub get_template_and_user {
my $in = shift;
my ( $user, $cookie, $sessionID, $flags );
- my $safe_chars = 'a-zA-Z_\-\/';
- die "bad template path" unless $in->{'template_name'} =~ m/^[$safe_chars]+.tt?$/ig; #sanitize input
-
$in->{'authnotrequired'} ||= 0;
my $template = C4::Templates::gettemplate(
$in->{'template_name'},