Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'gc/gitweb-filetest-acl'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 6 Nov 2017 05:24:30 +0000
(14:24 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 6 Nov 2017 05:24:30 +0000
(14:24 +0900)
"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
gitweb/gitweb.perl
patch
|
blob
|
history
raw
(from parent 1:
c692fe2
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index 959f04b494e610258488867aa7de013a3477e5fc..2417057f2bc61a98e68dc6c817e456a21bf6044e 100755
(executable)
--- 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);