fix #1690 $GLOBALS['HTTP_RAW_POST_DATA'] 버그 수정

#1684 -bug fix-> #1690 -bug fix-> 이것..
This commit is contained in:
람츠 2015-09-24 14:46:44 +09:00
parent 0326a8b5d1
commit 6adfc7764b

View file

@ -202,6 +202,7 @@ class Context
{
if(!isset($GLOBALS['HTTP_RAW_POST_DATA']) && version_compare(PHP_VERSION, '5.6.0', '>=') === true) {
if(simplexml_load_string(file_get_contents("php://input")) !== false) $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
if(strpos($_SERVER['CONTENT_TYPE'], 'json') || strpos($_SERVER['HTTP_CONTENT_TYPE'], 'json')) $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
}
// set context variables in $GLOBALS (to use in display handler)