Bug #12608 Updated: $REDIRECT_QUERY_STRING isn't parsed into $HTTP_GET_VARS
| From: | andy@php.net | Date: | Tue, 07 Aug 2001 12:40:42 +0000 |
| Subject: | Bug #12608 Updated: $REDIRECT_QUERY_STRING isn't parsed into $HTTP_GET_VARS | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-62401@lists.php.net to get a copy of this message | ||
ID: 12608
Updated by: andy
Reported By: havardda-dev@orakel.ntnu.no
Old Status: Open
Status: Feedback
Bug Type: Variables related
Old Operating System: Debian "potato" GNU/Linux
Operating System: Debian potato GNU/Linux
PHP Version: 4.0.5
New Comment:
I don't know if I read this right, because it was a bit confusing,
but I'll take a shot.
$HTTP_GET_VARS parses the query string for the current page...
I can't think of a good example right now, but it could mess things
up if REDIRECT_QUERY_STRING broke up into HTTP_GET_VARS.
If you wanted to do something like that try a script like the following...
[not tested]
<?
$splitby=split("&",$HTTP_SERVER_VARS["REDIRECT_QUERY_STRING"]);
for ($i=0;$i<count($splitby);$i++){
$splitfurther=split("=",$splitby[$i]);
$$splitfurther[0]=$splitfurther=[1];
}
This should put the REDIRECT_QUERY_STRING into variables,
like if the redirect query string was foo=bar, then your script should
parse it so that $foo="bar";
Does this help?
Previous Comments:
------------------------------------------------------------------------
[2001-08-06 18:57:51] havardda-dev@orakel.ntnu.no
The summary field really says it all:
Upon writing a customized 404 script, I stumbled upon the fact that the
$HTTP_SERVER_VARS["REDIRECT_QUERY_STRING"] didn't break up into $HTTP_GET_VARS, even
though one would expect it to.
Is there a reason to this? I tried going through the bug database and the email archives, but I
didn't seem to find anything similar. My apologies if this still is a second bug report, or if
there's some perfectly valid explanation given somewhere.
Thanks for a great tool, by the way.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12608&edit=1