summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c774b2d)
raw | patch | inline | side by side (parent: c774b2d)
author | Jakub Narebski <jnareb@gmail.com> | |
Tue, 19 Sep 2006 11:57:03 +0000 (13:57 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 20 Sep 2006 14:54:29 +0000 (07:54 -0700) |
Fix getting correct mimetype for "blob_plain" view for files which have
multiple extensions, e.g. foo.1.html; now only the last extension
is used to find mimetype.
Noticed by Martin Waitz.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
multiple extensions, e.g. foo.1.html; now only the last extension
is used to find mimetype.
Noticed by Martin Waitz.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index c77270c7cd7ef478f708dbbc6165ac420891ca5a..969c2de95125e08a44c1518eadc264ce6f9cc8c7 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
}
close(MIME);
- $filename =~ /\.(.*?)$/;
+ $filename =~ /\.([^.]*)$/;
return $mimemap{$1};
}