Nicer MIME type names

This commit is contained in:
Jamie Cameron
2007-10-05 19:39:08 +00:00
parent 4575b5b2db
commit 975b034f50

View File

@@ -5390,11 +5390,17 @@ if (!@list_mime_types_cache) {
local $_;
open(MIME, "$root_directory/mime.types");
while(<MIME>) {
local $cmt;
s/\r|\n//g;
s/#.*$//g;
if (s/#\s*(.*)$//g) {
$cmt = $1;
}
local ($type, @exts) = split(/\s+/);
push(@list_mime_types_cache, { 'type' => $type,
'exts' => \@exts });
if ($type) {
push(@list_mime_types_cache, { 'type' => $type,
'exts' => \@exts,
'desc' => $cmt });
}
}
close(MIME);
}