summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-11-06 14:24:30 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-06 14:24:30 +0900
commit9c958d69061b991097827fc53910dcb1b4f80485 (patch)
treeb28dae3cfece70cb17efcbbd8ea422892e41f483
parentMerge branch 'mp/push-pushoption-config' (diff)
parentgitweb: use filetest to allow ACLs (diff)
downloadtgif-9c958d69061b991097827fc53910dcb1b4f80485.tar.xz
Merge branch 'gc/gitweb-filetest-acl'
"gitweb" checks if a directory is searchable with Perl's "-x" operator, which can be enhanced by using "filetest 'access'" pragma, which now we do. * gc/gitweb-filetest-acl: gitweb: use filetest to allow ACLs
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 959f04b494..2417057f2b 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -10,6 +10,8 @@
use 5.008;
use strict;
use warnings;
+# handle ACL in file access tests
+use filetest 'access';
use CGI qw(:standard :escapeHTML -nosticky);
use CGI::Util qw(unescape);
use CGI::Carp qw(fatalsToBrowser set_message);