Bug #13790 Updated: \r\n prepended to variables if form enctype=multipart/form-data

From: Date: Mon, 22 Oct 2001 19:39:12 +0000
Subject: Bug #13790 Updated: \r\n prepended to variables if form enctype=multipart/form-data
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68727@lists.php.net to get a copy of this message
ID: 13790 User updated by: grichards@endertechnology.com Reported By: grichards@endertechnology.com Old Status: Feedback Status: Open Bug Type: *General Issues Operating System: Linux PHP Version: 4.0.4pl1 New Comment: I didn't set up the Linux box, it's red hat, but I'm not sure what version or how PHP was set up. How can I find out (read, Linux newbie). Previous Comments: ------------------------------------------------------------------------ [2001-10-22 15:08:12] hholzgra@php.net are you using original RedHat 7 RPMs ? ------------------------------------------------------------------------ [2001-10-22 15:00:53] grichards@endertechnology.com <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 this bug report at http://bugs.php.net/?id=13790&edit=1

« previous php.dev (#68727) next »