]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Merge r1491700, r1862200 from trunk:
authorJoe Orton <jorton@apache.org>
Fri, 5 Jul 2019 11:26:12 +0000 (11:26 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 5 Jul 2019 11:26:12 +0000 (11:26 +0000)
commitd9c7d786224d3276665ae02b98feca7ddc508333
treedf809bf9e94077321edce2e2cedc3eb10de05906
parent4c37a926b989c8d50c5f6509435f72c3f488b019
Merge r1491700, r1862200 from trunk:

According to comment in 'magic_rsl_add' and to the way 'magic_rsl_printf' manages its buffer, I think that this memory should be apr_pstrdup'ed.

This has been like that forever, but seems broken to me.

Untested.

* docs/conf/magic: Allow mod_mime_magic to return "audio/x-wav" for
  WAV files, and omit returning "audio/unknown" for other RIFF
  format files.  Having a MIME type defined on a continuation line
  *and* the preceding top-level match breaks mod_mime_magic, which
  treats the second result "printed" as the MIME encoding. Neither
  audio/x-wav nor audio/unknown are IANA registered, though Firefox
  and Chrome both appear to recognize the former.  Since the RIFF
  format can contain non-audio media, returning audio/unknown as
  a fallback for all RIFF files appears to be bogus anyway.

Submitted by: Àngel Ollé Blázquez <aollebla redhat.com>
Submitted by: jailletc36
Reviewed by: jorton, jim, icing

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1862604 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
docs/conf/magic
modules/metadata/mod_mime_magic.c