]> Lady’s Gitweb - Gitweb/commitdiff
Fix: Support for the standard mime.types map in gitweb
authorJakub Narebski <redacted>
Tue, 20 Jun 2006 06:19:31 +0000 (06:19 +0000)
committerLady <redacted>
Sat, 4 Apr 2026 18:43:37 +0000 (14:43 -0400)
Temporary fix: commented out offending line in mimetype_guess.

Signed-off-by: Junio C Hamano <redacted>
gitweb.cgi

index 21e00aaf85b4f681c8591f4e453244e087cc7e3a268f05fed997dd9d0ac13082..ba1147e59f6194524103402740e085934f65a46e5041cccafd3a7dc4e1146c71 100755 (executable)
@@ -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');
This page took 0.243214 seconds and 4 git commands to generate.