You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Andrey Chernov <ac...@nagual.pp.ru> on 2000/02/16 06:31:43 UTC
general/5766: AddDefaultCharset bug with CGI scripts
>Number: 5766
>Category: general
>Synopsis: AddDefaultCharset bug with CGI scripts
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue Feb 15 21:40:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: ache@nagual.pp.ru
>Release: 1.3.11 with css patch
>Organization:
apache
>Environment:
FreeBSD-current, Apache 1.3.11, css patch installed
AddDefaultCharset On
in httpd.conf
>Description:
It seems that AddDefaultCharset adds charset not only to text/plain and text/html types, but for every type comes from CGI script too.. :-(
NN and IE don't understand generated
"Content-Type: image/gif; charset=iso-8859-1"
header at all.
>How-To-Repeat:
Use followng CGI script for testing:
#!/bin/sh
echo "Content-type: image/gif"
echo
cat some.gif
>Fix:
Better checking of Content-Type.
>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! ]