|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54527 When %00 on POST deletes key-value pair
Submitted: 2011-04-14 04:12 UTC Modified: 2013-07-17 15:38 UTC
From: qiq9 at eloy dot serralaban dot com dot ar Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: Irrelevant OS: Linux kernel:2.6.18-194.26.1.el5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: qiq9 at eloy dot serralaban dot com dot ar
New email:
PHP Version: OS:


 [2011-04-14 04:12 UTC] qiq9 at eloy dot serralaban dot com dot ar
When posting %00, it does not add it to $_POST or $_REQUEST arrays.

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b11) Gecko/20100101 Firefox/4.0b11
Content-Length: 15
Connection: Keep-Alive


Test script:
<tr><th colspan="2">$_POST</th></tr>
foreach($_POST as $k=>$v)
?><tr><th colspan="2">$_SERVER</th></tr>

Expected result:
<tr><th colspan="2">$_POST</th></tr>
<tr><th colspan="2">$_SERVER</th></tr>

Actual result:
<tr><th colspan="2">$_POST</th></tr>
<tr><th colspan="2">$_SERVER</th></tr>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-19 08:39 UTC]
-Status: Open +Status: Feedback
 [2011-04-19 08:39 UTC]
Which SAPI, Web server and version of PHP are you using, and what is the filter.default configuration setting set to in phpinfo()? Additionally, do you have any extensions loaded that may change the way PHP operates, such as Suhosin?

I can't reproduce this under Apache (using the apache2handler SAPI), for the record.
 [2011-04-19 23:59 UTC] qiq9 at eloy dot serralaban dot com dot ar
-Status: Feedback +Status: Open
 [2011-04-19 23:59 UTC] qiq9 at eloy dot serralaban dot com dot ar
I'll check and post it. It happens on a server I hired.
 [2013-07-17 15:38 UTC]
-Status: Open +Status: No Feedback
 [2013-07-17 15:38 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 22:01:31 2024 UTC