选择语言 :

 Core_HttpIO::_get_format_data

null Core_HttpIO::_get_format_data( )
File: ./core/classes/httpio.class.php
protected static function _get_format_data($datatype, $key, $type)
{
    if ($type == HttpIO::PARAM_TYPE_OLDDATA)
    {
        # 如果是要拿原始拷贝,则加后缀
        $datatype .= '_OLD';
    }
    $data = HttpIO::_key_string(HttpIO::$$datatype, $key);
    if (null === $data) return null;

    if (!$type)
    {
        # 未安全过滤的数据
        $data = HttpIO::sanitize_decode($data);
    }
    elseif ($type == HttpIO::PARAM_TYPE_URL)
    {
        # URL 格式数据
        $data = HttpIO::sanitize_decode($data);
        $data = str_replace(array('<', '>', '\'', "\"", '\''), array('%3C', '%3E', '%27', '%22', '%5C'), $data);
    }
    return $data;
}