X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/4cee11f2d7955b6b9e0f899aef066123b2ae46afe46797b82c7ebbf124d8ed96..8a58a0170c3587ba5607f28de097fc6a474900193e5838f3858073f0ea6858dd:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index e0d2365..349c969 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -2527,6 +2527,13 @@ sub git_get_project_config { # key sanity check return unless ($key); + # only subsection, if exists, is case sensitive, + # and not lowercased by 'git config -z -l' + if (my ($hi, $mi, $lo) = ($key =~ /^([^.]*)\.(.*)\.([^.]*)$/)) { + $key = join(".", lc($hi), $mi, lc($lo)); + } else { + $key = lc($key); + } $key =~ s/^gitweb\.//; return if ($key =~ m/\W/);