|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-10 19:39 UTC] rasmus@php.net
-Status: Open
+Status: Feedback
[2011-05-10 19:39 UTC] rasmus@php.net
[2011-05-10 23:31 UTC] php at tracking-celebs dot info
-Status: Feedback
+Status: Open
[2011-05-10 23:31 UTC] php at tracking-celebs dot info
[2011-05-11 11:15 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2011-05-11 11:15 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 14:00:01 2025 UTC |
Description: ------------ When a null character is present in the value of a variable in the request string (encoded as %00), said variable will either not be set in $_GET at all (linux) or be set improperly (null character is escaped; win32) Test script: --------------- <?php print_r($_GET); if (isset($_GET['fb'])) { echo strlen($_GET['fb']); } else { echo '<a href="?fb=foo%00bar">click me</a>'; } Expected result: ---------------- After clicking the link: Array ( [fb] => foo�bar ) 7 Actual result: -------------- After clicking the link: - On a linux setup: Array ( ) <a href="?fb=foo%00bar">click me</a> - On a win32 setup: Array ( [fb] => foo\0bar ) 8