From: Jakub Narebski Date: Mon, 14 Aug 2006 00:15:22 +0000 (+0200) Subject: gitweb: Skip comments in mime.types like file X-Git-Tag: v1.4.3-rc1~258 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=618918e5411e2e769ad5e8d44c5d1cc363b983b5;p=git.git gitweb: Skip comments in mime.types like file Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 4fe3fc7b4..52ae2aa86 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -858,6 +858,7 @@ sub mimetype_guess_file { my %mimemap; open(MIME, $mimemap) or return undef; while () { + next if m/^#/; # skip comments my ($mime, $exts) = split(/\t+/); if (defined $exts) { my @exts = split(/\s+/, $exts);