summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Jakub Narebski <jnareb@gmail.com>2006-08-14 02:15:22 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-08-14 17:30:16 -0700
commit618918e5411e2e769ad5e8d44c5d1cc363b983b5 (patch)
tree47227a2ca776a0914bf144429f2bd66353fc7144
parentgitweb: Change appereance of marker of refs pointing to given object (diff)
downloadtgif-618918e5411e2e769ad5e8d44c5d1cc363b983b5.tar.xz
gitweb: Skip comments in mime.types like file
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgitweb/gitweb.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 4fe3fc7b44..52ae2aa861 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 (<MIME>) {
+ next if m/^#/; # skip comments
my ($mime, $exts) = split(/\t+/);
if (defined $exts) {
my @exts = split(/\s+/, $exts);