From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.0
PHP version: 4.0.4pl1
PHP Bug Type: Unknown/Other Function
Bug description: Forms with enctype="multipart/form-data" add "\r\n" to the variables
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)
--
Edit Bug report at: http://bugs.php.net/?id=9867&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]