summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-11-06 05:24:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-11-06 05:24:30 (GMT)
commit9c958d69061b991097827fc53910dcb1b4f80485 (patch)
treeb28dae3cfece70cb17efcbbd8ea422892e41f483 /gitweb
parentc692fe2c1e3b0104c5573e2ec3ae62ba2711c4e6 (diff)
parent411ddf9eca67f77d09ce72a832332af9b9330569 (diff)
downloadgit-9c958d69061b991097827fc53910dcb1b4f80485.zip
git-9c958d69061b991097827fc53910dcb1b4f80485.tar.gz
git-9c958d69061b991097827fc53910dcb1b4f80485.tar.bz2
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
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 959f04b..2417057 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);