{"thread":{"id":"4580","subject":"[PATCH] Fix: Support for the standard mime.types map in gitweb","startedAt":"2006-06-20T06:19:31Z","lastAt":"2006-06-20T06:19:31Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"22109","messageId":"11507843541678-git-send-email-jnareb@gmail.com","threadId":"4580","inReplyTo":null,"subject":"[PATCH] Fix: Support for the standard mime.types map in gitweb","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-06-20T06:19:31Z","receivedAt":"2006-06-20T06:19:31Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Temporary fix: commented out offending line in mimetype_guess.\n\n---\n\n gitweb/gitweb.cgi |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\n718a3b4c1e56c0330fa2c7ced2e66be5b095b541\ndiff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi\nindex 11cc71f..1b254df 100755\n--- a/gitweb/gitweb.cgi\n+++ b/gitweb/gitweb.cgi\n@@ -1524,7 +1524,7 @@ sub mimetype_guess {\n \n \tif ($mimetypes_file) {\n \t\tmy $file = $mimetypes_file;\n-\t\t$file =~ m#^/# or $file = \"$projectroot/$path/$file\";\n+\t\t#$file =~ m#^/# or $file = \"$projectroot/$path/$file\";\n \t\t$mime = mimetype_guess_file($filename, $file);\n \t}\n \t$mime ||= mimetype_guess_file($filename, '/etc/mime.types');\n-- \n1.3.0\n"}]}