Bug #2944: PHP reports garbled MIME header with IE4.5/MAC

From: Date: Thu, 09 Dec 1999 17:49:11 +0000
Subject: Bug #2944: PHP reports garbled MIME header with IE4.5/MAC
Groups: php.dev 
Request: Send a blank email to php-dev+get-13524@lists.php.net to get a copy of this message
From: christian.gruen@iconmedialab.com Operating system: Solaris 7 PHP version: 3.0.12 PHP Bug Type: Other Bug description: PHP reports garbled MIME header with IE4.5/MAC This may be an IE4/Macintosh bug but maybe php could work around it. When processing Forms with METHOD="POST" ENCTYPE="multipart/form-data" with a graphical submit button PHP prints the following warning: Upload Mime headers garbled [onten] in /www/htdocs/current/upload_doc.php3 on line 0 This happens only when the user agent is IE 4.0 or 4.5 on a MAC. All other Platform/Browser combinations make no problem. With normal submit buttons everything is ok. The error appears even when there is no upload field in the form. Removing the ENCTYPE tag from the HTML form works ok. I found out that the error comes from line 89 in mime.c my C knowledge is too limited to fix this. Here is same sample code: <HTML> <HEAD> <title></title> </HEAD> <BODY> <FORM ACTION="contacts.php3" METHOD="POST" ENCTYPE="multipart/form-data"> <SPAN CLASS="selectcaption">employee name:</SPAN><BR> <INPUT TYPE="Text" NAME="searchname" MAXLENGTH="30" SIZE="12" CLASS="submenu" WIDTH="130"> <BR> <INPUT TYPE="Image" NAME="search" VALUE="search" BORDER="0" SRC="some.gif"> </FORM> </BODY> </HTML> gives warning <input type="submit" NAME="search" VALUE="search"> works ok the php code that generates the error is very simple: <html> <body> <?php echo "$searchname<br>";?> </body> </html>

« previous php.dev (#13524) next »