You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Linus Walleij <tr...@df.lth.se> on 2001/05/16 22:48:23 UTC
config/7730: magic file is a bit outdated
>Number: 7730
>Category: config
>Synopsis: magic file is a bit outdated
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: apache
>Arrival-Date: Wed May 16 13:50:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: triad@df.lth.se
>Release: 2.0
>Organization:
apache
>Environment:
Any. No platform-specific issue.
>Description:
I noticed that the magic file fails to recognize some nowadays popular and perfectly legal MIME-types. I have a patch.
>How-To-Repeat:
Try for example have the magic module recognize a video/quicktime file.
>Fix:
Yes, here is a patch for the "magic" file with some new magic (not everyone I could come up with, but some):
90c90
< 0 string RIFF audio/unknown
---
> 0 string RIFF audio/unknown
92,101c92
< >8 string WAVE audio/x-wav
<
< # MPEG audio, from Linus Walleij <tr...@df.lth.se>
< # Recognizes an MPEG audio file with ID3v2 header. MPEG audio
< # does not have a clear enough file format to recognize further
< # magic bytes.
< 0 string ID3 audio/mpeg
<
< # C64 SID Music files, from Linus Walleij <tr...@df.lth.se>
< 0 string PSID audio/prs.sid
---
> >8 string WAVE audio/x-wav
197,205d187
< # XML eXtensible Markup Language, from Linus Walleij <tr...@df.lth.se>
< 0 string \<?xml text/xml
< # Denoted in unicode (Hex: FF FE 3C 00 3F 00 78 00 6D 00)
< 0 string \255\254\060\\000\120\000\109\000 text/xml
< # Or without the byte-order mark FIXME
< 0 string \060\\000\120\000\109\000 text/xml
<
<
< #------------------------------------------------------------------------------
390,392d371
< # Quicktime video, from Linus Walleij <tr...@df.lth.se>
< # from Apple quicktime file format documentation.
< 4 string moov video/quicktime
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]