|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-16 08:59 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 22:00:01 2025 UTC |
I'm not sure if you've been notified of this, but the same problem that exists in perl-based CGI scripts involving the "poison null byte" exists in PHP. I was able to POST the following to a script: name=John%00+Q.+Public which should translate to "John Q. Public", although if you post that to a PHP document such as <?php echo "Your name is $name"; ?> it will actually print "Your name is John" and stop there. in perl, I know I can s/%00//ge my URL-encoded strings before I actually decode them, but PHP (from the bit I have used it) decodes all posted variables automatically. For more detail into the inner working of the poison null byte, read Phrack issue 55, article 7: http://www.phrack.com/search.phtml?view&article=p55-7 -Kerb