summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 19fb896)
raw | patch | inline | side by side (parent: 19fb896)
author | Alexander Gavrilov <angavrilov@gmail.com> | |
Wed, 5 Nov 2008 22:15:56 +0000 (01:15 +0300) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 7 Nov 2008 00:38:01 +0000 (16:38 -0800) |
GitWeb source contains a special function that implements the
export_ok check, but validate_project still uses a separate copy
of essentially the same code.
This patch makes it use the dedicated function, thus ensuring
that all checks are done through a single code path.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
export_ok check, but validate_project still uses a separate copy
of essentially the same code.
This patch makes it use the dedicated function, thus ensuring
that all checks are done through a single code path.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 9d1af7e55703c87168e949c285a97fbce867d3e5..68bdf62657f748839b771ba4d58e8cbc943c0f93 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
my $input = shift || return undef;
if (!validate_pathname($input) ||
!(-d "$projectroot/$input") ||
- !check_head_link("$projectroot/$input") ||
- ($export_ok && !(-e "$projectroot/$input/$export_ok")) ||
+ !check_export_ok("$projectroot/$input") ||
($strict_export && !project_in_list($input))) {
return undef;
} else {