PHP 4.0 Bug #9867: Forms with enctype="multipart/form-data" add "\r\n" to the variables

From: Date: Tue, 20 Mar 2001 13:02:42 +0000
Subject: PHP 4.0 Bug #9867: Forms with enctype="multipart/form-data" add "\r\n" to the variables
Groups: php.dev 
Request: Send a blank email to php-dev+get-49486@lists.php.net to get a copy of this message
From: alsanche@qarana.com 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

« previous php.dev (#49486) next »