mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 20:32:14 +09:00
PHP 호환성 개선
- $HTTP_RAW_POST_DATA - $_SERVER['HTTP_CONTENT_TYPE']
This commit is contained in:
parent
80ab9dffcd
commit
f4d4c3218d
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ class Context
|
|||
function init()
|
||||
{
|
||||
if(!isset($GLOBALS['HTTP_RAW_POST_DATA']) && version_compare(PHP_VERSION, '5.6.0', '>=') === true) {
|
||||
$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents('php://input');
|
||||
if(simplexml_load_string(file_get_contents("php://input")) !== false) $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
|
||||
}
|
||||
|
||||
// set context variables in $GLOBALS (to use in display handler)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue