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>
This commit is contained in:
parent
d294e1cad4
commit
618918e541
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user