X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/efb1a9486eeaf3f416bcf5ac70e9a17a1a537912bb9c2a2a4850d42c9b70db32..74f4df8388b19731ca2f6a5ebf52466486d0df35937facf9f98fad671b092673:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index f49abf1..ef5e5dc 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -835,7 +835,7 @@ sub href (%) { } my $use_pathinfo = gitweb_check_feature('pathinfo'); - if ($use_pathinfo) { + if ($use_pathinfo and defined $params{'project'}) { # try to put as many parameters as possible in PATH_INFO: # - project name # - action @@ -850,7 +850,7 @@ sub href (%) { $href =~ s,/$,,; # Then add the project name, if present - $href .= "/".esc_url($params{'project'}) if defined $params{'project'}; + $href .= "/".esc_url($params{'project'}); delete $params{'project'}; # since we destructively absorb parameters, we keep this @@ -2152,8 +2152,9 @@ sub git_get_projects_list { my $subdir = substr($File::Find::name, $pfxlen + 1); # we check related file in $projectroot - if (check_export_ok("$projectroot/$filter/$subdir")) { - push @list, { path => ($filter ? "$filter/" : '') . $subdir }; + my $path = ($filter ? "$filter/" : '') . $subdir; + if (check_export_ok("$projectroot/$path")) { + push @list, { path => $path }; $File::Find::prune = 1; } }, @@ -6074,7 +6075,24 @@ XML print "