php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12130 field values in multipart/form
Submitted: 2001-07-13 03:26 UTC Modified: 2001-07-23 14:17 UTC
From: e+php at arix dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.4pl1 OS: RedHat 7.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
33 - 1 = ?
Subscribe to this entry?

 
 [2001-07-13 03:26 UTC] e+php at arix dot com
when using ENCTYPE="multipart/form" for a <FORM>, PHP receives the values of fields with a prepended \n e.g. with:

<PRE>
<?
if ($f1) {
   echo "test: /$f1/";
   exit;
   }
?>
</PRE>
<FORM ENCTYPE="multipart/form">
<INPUT TYPE=TEXT NAME=f1>
<INPUT TYPE=SUBMIT>
</FORM>

if I enter "Hello" into the field and submit the form I get:

/
Hello/

what's the deal?? I've read through all the user comments on the file uploads section but no one seems to have run into this.  is it a bug or did I miss some docs somewhere?

1k thx - e r i c k

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-22 16:20 UTC] andy@php.net
works fine for me.  Please update to the latest version and
tell me if it still doesn't work.
 [2001-07-23 14:17 UTC] andy@php.net
clsoing...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 12:01:31 2024 UTC