threads / patch / 4580

patchFix: Support for the standard mime.types map in gitweb

Subject: [PATCH] Fix: Support for the standard mime.types map in gitweb

## tl;dr

One message between Jun 20, 2006 and Jun 20, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jakub Narebski· Jun 20, 2006, 06:19 UTC · lore
Temporary fix: commented out offending line in mimetype_guess.
---
 gitweb/gitweb.cgi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
718a3b4c1e56c0330fa2c7ced2e66be5b095b541
Show changes to gitweb/gitweb.cgi +1 −1
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index 11cc71f..1b254df 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -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');
-- 
1.3.0

← back to recent threads