You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Dan Delaney <Di...@Dionysia.org> on 2001/11/07 16:48:47 UTC
mod_negotiation/8702: Query String lost when calling a PHP file without the .php extension in the URL
>Number: 8702
>Category: mod_negotiation
>Synopsis: Query String lost when calling a PHP file without the .php extension in the URL
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Nov 07 07:50:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Dionysos@Dionysia.org
>Release: 1.3.22
>Organization:
apache
>Environment:
Red Hat 6.1. Apache 1.3.22. PHP 4.0.6. Can't give you much other info, it's on a shared host that I don't have much access to. Sorry.
>Description:
When using content negotiation to call a PHP file without specifying the ".php" extention in the URL (e.g., http://www.foo.com/products/categories to call a file called "categories.php"), if a query string is applied, it is completely lost--PHP does not see it, and the QUERY_STRING environment variable is empty. So, if I were to call http://www.foo.com/products/categories?catid=5, I wouldn't get category ID 5, because the PHP script would not have a $catid variable defined.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]