From: Jakub Narebski Date: Tue, 20 Jun 2006 06:19:31 +0000 (+0000) Subject: Fix: Support for the standard mime.types map in gitweb X-Git-Tag: v1.4.1-rc1~2^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=57bd4d3523efecf60197040cad34154aff4ddf80;p=git.git Fix: Support for the standard mime.types map in gitweb Temporary fix: commented out offending line in mimetype_guess. Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index d7da6368c..78e6dd034 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -1518,7 +1518,7 @@ sub mimetype_guess { if ($mimetypes_file) { my $file = $mimetypes_file; - $file =~ m#^/# or $file = "$projectroot/$path/$file"; + #$file =~ m#^/# or $file = "$projectroot/$path/$file"; $mime = mimetype_guess_file($filename, $file); } $mime ||= mimetype_guess_file($filename, '/etc/mime.types');