php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9867 Forms with enctype="multipart/form-data" add "\r\n" to the variables
Submitted: 2001-03-20 08:02 UTC Modified: 2001-04-19 09:38 UTC
From: alsanche at qarana dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.4pl1 OS: Red Hat Linux 7.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alsanche at qarana dot com
New email:
PHP Version: OS:

 

 [2001-03-20 08:02 UTC] alsanche at qarana dot com
Details:
When retrieving the value of a variable coming from a form, if
the form had enctype="multipart/form-data", "\r\n" is added at
the beginning of the variable.

SCRIPT:
<html><head></head><body>
<? if ($t1!="") {
	echo ("BEFORE->".$t1."<-AFTER<br>");
	echo ("BEFORE->".$t2."<-AFTER<br>");
}
<form action="<%=$PHP_SELF%>" method="POST" enctype="multipart/form-data">
<input type="hidden" name="t1" value="AA">
 <input type="text" name="t2" value="BB">
 <input type="submit">
</form>
</body></html>

Modules:
php-pgsql4.0.4pl1-3
php-ldap4.0.4pl1-3
Apache 1.3.12-25

php.ini
(not available at this moment)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-20 08:28 UTC] sniper@php.net
Wild guess: You're using the RPMs from RedHat? 
Please try with the latest CVS snapshot from http://snaps.php.net/ as I can't reproduce this.

--Jani

 [2001-04-19 09:38 UTC] sniper@php.net
No feedback. Reopen this bug report if problem still exists
with soon to be release PHP 4.0.5.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC