php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2944 PHP reports garbled MIME header with IE4.5/MAC
Submitted: 1999-12-09 12:49 UTC Modified: 2000-02-13 11:44 UTC
From: christian dot gruen at iconmedialab dot com Assigned:
Status: Closed Package: Other
PHP Version: 3.0.12 OS: Solaris 7
Private report: No CVE-ID: None
 [1999-12-09 12:49 UTC] christian dot gruen at iconmedialab dot com
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>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-12 18:37 UTC] thies at cvs dot php dot net
workaround in CVS
 [2000-02-13 11:44 UTC] thies at cvs dot php dot net
forgot to close
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 18:01:33 2024 UTC