ID:               30956
 Updated by:       [EMAIL PROTECTED]
 Reported By:      phpbugs at crumpton dot cx
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: redhat 7.3
 PHP Version:      5.0.2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.


Previous Comments:
------------------------------------------------------------------------

[2004-12-02 04:47:36] phpbugs at crumpton dot cx

Description:
------------
In the key/value pairs from posted data, periods (.) within the key
name (ie, "var.name=some+data") are being converted to underscores (_)
(ie, "var_name=some+data").

$HTTP_RAW_POST_DATA contains the correct urlencoded data with the
periods (.).  $_REQUST, $_POST, and $HTTP_POST_DATA, however, all
contain keys with the periods (.) replaced as underscores (_).

Note: The "Reproduce code:" section requires
"always_populate_raw_post_data = On" in php.ini to see the
$HTTP_RAW_POST_DATA... You will, however, see the mangled $_POST
variable either way.

Reproduce code:
---------------
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
        header("Content-type: text/plain");
        print_r($HTTP_RAW_POST_DATA . "\n");
        print_r($_POST);
        die;
}
?>
<form method="post">
  <input type="text" name="var.name" value="some data" />
  <input type="submit" value="submit" />
</form>


Expected result:
----------------
var.name=some+data
Array
(
    [var.name] => some data
)

Actual result:
--------------
var.name=some+data
Array
(
    [var_name] => some data
)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30956&edit=1

Reply via email to