>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: [EMAIL PROTECTED] >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 <[EMAIL PROTECTED]> 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! ]