#28471 [Opn]: empty variable in url causes all other values to be lost
| From: | nico at kamensek dot de | Date: | Fri, 21 May 2004 15:26:30 +0000 |
| Subject: | #28471 [Opn]: empty variable in url causes all other values to be lost | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-59846@lists.php.net to get a copy of this message | ||
ID: 28471
User updated by: nico at kamensek dot de
Reported By: nico at kamensek dot de
Status: Open
Bug Type: Scripting Engine problem
Operating System: Linux Kernel 2.4.26-grsec #1 SMP
PHP Version: 4.3.6
New Comment:
I don't know if it is important, but I guess I should also mention that
I am running php an an Apache 1.3.26 Webserver(Debian stable) with
suPHP. The config is like I always do it and I never had any problems.
That's why I think this might be a bug which only occurs because of
some tiny detail in my configuration.
Previous Comments:
------------------------------------------------------------------------
[2004-05-21 14:03:44] nico at kamensek dot de
Description:
------------
This problem does not seem to be php 4.3.6 specific as I was able to
successfully replicated it with php 4.3.4.
The problem is, that a call like http://url/script.php?action=test
works fine. If I add &var1= to the url, everything else is lost. The
script acts as if I have called just script.php. But this problem only
occurs in case I add a variable(var1 here) with no value.
A test for that can be found at http://kamensek.de/test/test.php
Try
- test.php?action=test
- test.php?action=test&var1=
- test.php?action=test&var1=y
and finally test.php?action=&var1=y which is no problem.
The code is at http://kamensek.de/test/test.txt which
is just a little
example. PHP-config to that is located at
http://kamensek.de/phpinfo.php
This is *not* a register_globals problem. register_globals is on.
Reproduce code:
---------------
Please see the links mentioned below.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28471&edit=1