[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-bugs
Subject: [Bug 54218] New: POST value duplicated when passed to PHP
From: bugzilla () apache ! org
Date: 2012-11-28 12:53:56
Message-ID: bug-54218-7868 () https ! issues ! apache ! org/bugzilla/
[Download RAW message or body]
https://issues.apache.org/bugzilla/show_bug.cgi?id=54218
Bug ID: 54218
Summary: POST value duplicated when passed to PHP
Product: Apache httpd-2
Version: 2.2.16
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: All
Assignee: bugs@httpd.apache.org
Reporter: sarciszewski@knights.ucf.edu
Classification: Unclassified
Code:
<?
if(!empty($_POST)) {
header("Content-Type: text/plain");
echo file_get_contents('php://input');
echo "\n=========================================================\n";
var_dump($_POST); exit;
}
?>
This duplicates:
<form method="post" target="_blank">
<input type="text" name="menu" value="Blah" />
<input type="submit" />
</form>
<p>This doesn't:</p>
<form method="post" target="_blank">
<input type="text" name="menu" value="Blah" />
<input type="text" name="second" value="Second value" />
<input type="submit" />
</form>
Output (first button):
menu=Blahmenu=Blah
=========================================================
array(1) {
["menu"]=>
string(13) "Blahmenu=Blah"
}
Output (second button):
menu=Blah&second=Second+valuemenu=Blah&second=Second+value
=========================================================
array(2) {
["menu"]=>
string(4) "Blah"
["second"]=>
string(12) "Second value"
}
# Some system information #
admin@summit:$uname -a
Linux summit 2.6.26-2-686-bigmem #1 SMP Sun Mar 4 23:05:22 UTC 2012 i686
GNU/Linux
admin@summit:$/usr/sbin/apache2 -v
Server version: Apache/2.2.16 (Debian)
Server built: Sep 9 2012 21:17:33
admin@summit:$ /usr/bin/php5 -v
PHP 5.4.9-1~dotdeb.0 (cli) (built: Nov 26 2012 04:24:47)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic