PHP 4.0 Bug #6685: %20 mis-converted in GET mechanism
| From: | waldschrott@php.net | Date: | Tue, 12 Sep 2000 17:39:37 +0000 |
| Subject: | PHP 4.0 Bug #6685: %20 mis-converted in GET mechanism | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32992@lists.php.net to get a copy of this message | ||
From: waldschrott@php.net
Operating system: *
PHP version: 4.0.2
PHP Bug Type: *General Issues
Bug description: %20 mis-converted in GET mechanism
I guess this is has the potential to be a serious bug since I think I´m allowed to take any
key/value pairs I want to if encoded correctly, very simple to reproduce
Call a page with this QueryString
?%20asd%20%20=%20asdf (you can replace %20 with + if you want to, same effect)
and look what happened to to the key part of key=value
<?php var_dump($HTTP_GET_VARS); ?>
all leading spaces are stripped, all trailing ones converted to "_" - that really does not
make sense, I don´t know what else is converted with mystic rules, I found these
The only workaround is to access the QueryString directly which seems to be fine (of course)