[PHP-DEV] PHP 4.0 Bug #9867: Forms with enctype="multipart/form-data" add "\r\n" to the variables From: alsanche <email protected>
Date: 03/20/01

From: alsanche <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: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>