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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Apr 23 13:01:29 2024 UTC