]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Flame bait: mod_charset_lite would decide in the mime checker phase
authorMartin Kraemer <martin@apache.org>
Mon, 15 Dec 2003 14:24:31 +0000 (14:24 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 15 Dec 2003 14:24:31 +0000 (14:24 +0000)
commite4a2a262326c10ee8a51fe0b818f705d96b12a0b
treea20dd28d626d49bdafdcd97c7663bdd44f8d080c
parentacd83dc5695e4e7d9a1ec7e974763a98db9fd7bb
Flame bait: mod_charset_lite would decide in the mime checker phase
whether a conversion was required, and would stick with that decision,
even if a later handler (like CGI script) would modify the actual
MIME type returned in the response. That was fatal when an EBCDIC
machine was going to return, say, an image/gif (because the initial
MIME type would be text/plain, and only later on be set to image/gif).
But even for "ordinary" ASCII-based machines the conversion fails
if a CGI script decides to return UTF-16 data.
At the moment the following change is #if #system(bs2000), but IMHO
it should be enabled globally: I moved the conversion decision into
the filter itself (because it is the handler which does the final
decision which MIME time is tagged on the response, and we can only
evaluate its decision after it started the output generation).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102066 13f79535-47bb-0310-9956-ffa450edef68
modules/experimental/mod_charset_lite.c