]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
The Microsoft OOXML format uses xml packaged into a zip file, and has
authorJoe Orton <jorton@apache.org>
Wed, 16 Dec 2020 16:23:23 +0000 (16:23 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 16 Dec 2020 16:23:23 +0000 (16:23 +0000)
commitcaeb9081648a92d2e545af5c97fd6fe5120eb4cf
tree5eed48a3e7a459e05e8970e716e6de6c34724a2a
parentc86576d93ee32869d2d9dd5fabd9f3a98c4d0d53
The Microsoft OOXML format uses xml packaged into a zip file, and has
mimetypes like:

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

This mimetypes contains 'xml', but is unfortunately not an xml file.

xml2enc processes these files (in particular, when mod_proxy_html is
used), typically resulting in them being corrupted as it seems to
attempt to perform a ISO-8859-1 to UTF-8 conversion on them.

* modules/filters/mod_xml2enc.c (xml2enc_ffunc): Restrict test for XML
  types to matching "+xml".

Submitted by: Joseph Heenan <joseph.heenan fintechlabs.io>
PR: 64339
Github: closes #150

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884505 13f79535-47bb-0310-9956-ffa450edef68
changes-entries/pr64339.txt [new file with mode: 0644]
modules/filters/mod_xml2enc.c