Bug #13790: \r\n prepended to variables if form enctype=multipart/form-data
| From: | grichards at endertechnology dot com | Date: | Mon, 22 Oct 2001 19:00:53 +0000 |
| Subject: | Bug #13790: \r\n prepended to variables if form enctype=multipart/form-data | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-68725@lists.php.net to get a copy of this message | ||
From: grichards@endertechnology.com
Operating system: Linux
PHP version: 4.0.4pl1
PHP Bug Type: *General Issues
Bug description: \r\n prepended to variables if form enctype=multipart/form-data
<form method=post enctype=multipart/form-data action=$PHP_SELF>
<input type=hidden name=step value=one>
<input type=submit name=submit value=Submit>
</form>
echo "'".$step."'"; # yields:
'
one'
$step = substr("\r\n", "", $step);
echo "'".$step."'"; # yields:
'one'
Gotta get rid of that prepended line!
Gabe
--
Edit bug report at: http://bugs.php.net/?id=13790&edit=1