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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: e+php at arix dot com
New email:
PHP Version: OS:

 

 [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: Tue Apr 30 09:01:29 2024 UTC