Bug #14758: $HTTP_GET_VARS Improper NAME scrambling
| From: | chris at chrisderose dot com | Date: | Sun, 30 Dec 2001 03:34:55 +0000 |
| Subject: | Bug #14758: $HTTP_GET_VARS Improper NAME scrambling | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-75324@lists.php.net to get a copy of this message | ||
From: chris@chrisderose.com
Operating system: Linux 2.4 (Mandrake 6.1)
PHP version: 4.0.6
PHP Bug Type: *General Issues
Bug description: $HTTP_GET_VARS Improper NAME scrambling
<? if (!sizeof($HTTP_GET_VARS) ) { ?>
<FORM ACTION="<?=$PHP_SELF?>" METHOD="GET">
<INPUT TYPE="TEXT" NAME="Test Input" VALUE="doh!">
<INPUT TYPE="SUBMIT">
</FORM>
<?} else { ?>
This won't work (it should):<?=$HTTP_GET_VARS['Test Input']?><BR>
This will:<?=$HTTP_GET_VARS['Test_Input']?><BR>
<? } ?>
--
Edit bug report at: http://bugs.php.net/?id=14758&edit=1