From 6adfc7764ba05da95fd74b075b8c90dc227cbb0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=9E=8C=EC=B8=A0?= <82g74nx0bm69@naver.com> Date: Thu, 24 Sep 2015 14:46:44 +0900 Subject: [PATCH] =?UTF-8?q?fix=20#1690=20$GLOBALS['HTTP=5FRAW=5FPOST=5FDAT?= =?UTF-8?q?A']=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #1684 -bug fix-> #1690 -bug fix-> 이것.. --- classes/context/Context.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index 94f762dbe..b2094b9d6 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -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)