gitweb: Use single implementation of export_ok check.
[gitweb.git] / gitweb / gitweb.perl
index 9d1af7e55703c87168e949c285a97fbce867d3e5..68bdf62657f748839b771ba4d58e8cbc943c0f93 100755 (executable)
@@ -853,8 +853,7 @@ sub validate_project {
        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 {