php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34207 Form data is being misinterpreted upon submission, "url" in word "curl" - error
Submitted: 2005-08-21 21:14 UTC Modified: 2005-08-22 01:10 UTC
From: nathanlyle at upwebmaestro dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.4.0 OS: Linux 2.4.26-ow1 #2 SMP
Private report: No CVE-ID: None
 [2005-08-21 21:14 UTC] nathanlyle at upwebmaestro dot com
Description:
------------
(I apologize for the lack of technical detail)

A simple form, submitting to the same page that the form is on, is seeing the "url" in the word "curl" and causing an error. Something is attempting to operate on the "url". 

It's a basic text field, and I'm not able to manipulate it with any PHP string commands to avoid the problem.

Reproduce code:
---------------
print "<form method=\"post\" action=\"commentary.php\">";
print "<textarea name=\"actualText\" rows=\"10\" cols=\"70\"></textarea></td>";
print "<input type=\"submit\" value=\"Save\" />";
print "</form>";

(There's more code to the page, but the value of "curl" followed by a space "curl " causes the error and doesn't allow any other code to be run.

Expected result:
----------------
Textfield value added to database, and a "success" message should be displayed.

Actual result:
--------------
Forbidden
You don't have permission to access /admin/commentary.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at www.progressivedailybeacon.com Port 80


(The script is in a passworded directory, that has already been logged into by this point.)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-22 01:10 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 29 08:00:02 2025 UTC