php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13790 \r\n prepended to variables if form enctype=multipart/form-data
Submitted: 2001-10-22 15:00 UTC Modified: 2001-10-23 04:11 UTC
From: grichards at endertechnology dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: grichards at endertechnology dot com
New email:
PHP Version: OS:

 

 [2001-10-22 15:00 UTC] grichards at endertechnology dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-22 15:08 UTC] hholzgra@php.net
are you using original RedHat 7 RPMs ?
 [2001-10-22 15:39 UTC] grichards at endertechnology dot 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:51 UTC] 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 16:36 UTC] grichards at endertechnology dot com
Wow, that was a really neat trick! Check it out:

http://www.honors.uci.edu/phpinfo.php

Gabe
 [2001-10-23 04:11 UTC] hholzgra@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 12:01:31 2024 UTC