Bug #77842 [Opn->Nab]: Input interpreted as hex
| From: | requinix@php.net | Date: | Wed, 03 Apr 2019 22:35:59 +0000 |
| Subject: | Bug #77842 [Opn->Nab]: Input interpreted as hex | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220309@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77842&edit=1
ID: 77842
Updated by: requinix@php.net
Reported by: info at standa-david dot com
Summary: Input interpreted as hex
-Status: Open
+Status: Not a bug
Type: Bug
Package: FPM related
Operating System: Debian 9.8
PHP Version: 7.2.16
Block user comment: N
Private report: N
New Comment:
Learn about query strings.
Previous Comments:
------------------------------------------------------------------------
[2019-04-03 22:06:34] info at standa-david dot com
Description:
------------
Hi I am using latest version of PHP-FPM from and nginx
deb https://packages.sury.org/php/ stretch main
When my URL is for example
http://server.url/test.php?test=%00123456789
then the result is:
Array ( [test] => 123456789 )
and not
Array ( [test] => %00123456789 )
PHP will interpret beginning of the string as a hex 0x00
Test script:
---------------
<?php
print_r($_GET);
?>
Expected result:
----------------
Array ( [test] => %00123456789 )
Actual result:
--------------
Array ( [test] => 123456789 )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77842&edit=1