Fix: Support for the standard mime.types map in gitweb
PATCH 1/1 Fix: Support for the standard mime.types map in gitweb
Temporary fix: commented out offending line in mimetype_guess.
---
gitweb/gitweb.cgi | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
718a3b4c1e56c0330fa2c7ced2e66be5b095b541
gitweb/gitweb.cgi +1 -1
@@ -1524,7 +1524,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');
Signature · 1 line
1.3.0