diff options
author | Jakub Narebski <jnareb@gmail.com> | 2006-06-20 06:19:31 +0000 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-20 02:59:55 -0700 |
commit | 57bd4d3523efecf60197040cad34154aff4ddf80 (patch) | |
tree | 668fc82e55f80d9bd6dcef5784b692c764eaf2a3 /gitweb | |
parent | 7b6511a13f9913a7a54e76b18e21c2b2bfae18cf (diff) | |
download | git-57bd4d3523efecf60197040cad34154aff4ddf80.tar.gz git-57bd4d3523efecf60197040cad34154aff4ddf80.tar.xz |
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 <junkio@cox.net>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |