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

From: Date: Tue, 23 Oct 2001 08:11:25 +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-68763@lists.php.net to get a copy of this message
ID: 13790 Updated by: hholzgra Reported By: grichards@endertechnology.com Old Status: Open Status: Closed Bug Type: *General Issues Operating System: Linux PHP Version: 4.0.4pl1 New Comment: ok, blame RedHat :( you may get an updated RPM from RedHat (although the one we tried introduced a new problem regarding gethostbyname() lookups) put i'd recomend to get the sources and compile PHP yourself, using the exact configure line as you see in the phpinfo() output (at the top) Previous Comments: ------------------------------------------------------------------------ [2001-10-22 16:36:42] grichards@endertechnology.com Wow, that was a really neat trick! Check it out: http://www.honors.uci.edu/phpinfo.php Gabe ------------------------------------------------------------------------ [2001-10-22 15:51:23] sander@php.net A good start is a script which only contains this: <?php phpinfo(); ?> Make that script available to us (or just only the HTML-output of it). Do NOT post it here, but upload it somewhere. If you don't know how to do that, mail it to me (sander@php.net) and I'll put it online somewhere. ------------------------------------------------------------------------ [2001-10-22 15:39:12] grichards@endertechnology.com 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). ------------------------------------------------------------------------ [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 (#68763) next »