|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-04-03 22:06 UTC] 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 ) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 11:00:01 2025 UTC |
why do you think a unencoded % sign in your addressbar reaches the server? php > echo urldecode('%00123456789'); 123456789 -------------------- php > echo urlencode('%00123456789'); %2500123456789 php > echo urldecode('%2500123456789'); %00123456789