Red Hat Bugzilla – Bug 26116
Extraneous characters in PHP forms
Last modified: 2007-04-18 12:31:12 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
Any form submitted with a <form> tag containing
ENCTYPE="multipart/form-data" will produce extraneous carriage
returns preceeding any submitted data. If the ENCTYPE isn't
specified this problem doesn't occur. This only seems to happen in
the new update php-4.0.4pl1-3. I have included a form and the PHP
script that documents the error on our system.
Steps to Reproduce:
1. Create an HTML form with a tag of <FORM
2. In the receiving script, print out a form field. Use either the <PRE>
tag, or look at the source to see the newline character inserted before
the form field.
This bug doesn't become severe until dealing with databases. The
extra newline causes problems with matching for foreign keys. It
seems like a logical fix would be to remove the
ENCTYPE="multipart/form-data" part of the form tag. However,
according to PHP, this part is required when doing file uploads.
Created attachment 9039 [details]
Inital HTML form containing drop down box
Please check if the errata candidates in http://people.redhat.com/nalin/test/
fix this for you. I'm quite certain that this is the same as bug #24933.
*** This bug has been marked as a duplicate of 24933 ***