dever 6 years ago
parent
commit
63fd553fc5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      component/service/Receive.php

+ 2 - 1
component/service/Receive.php

@@ -126,7 +126,7 @@ class Receive
      */
     private function request()
     {
-		$post = isset($GLOBALS["HTTP_RAW_POST_DATA"]) ? $GLOBALS["HTTP_RAW_POST_DATA"] : false;
+		$post = $_GET ? $_GET ? $_POST : false;
 
 /*
 		$post = ' <xml>
@@ -180,6 +180,7 @@ class Receive
 */
 		Dever::log(time());
 		if (!empty($post)) {
+			$post = json_encode($post);
 			Dever::log($post);
 			return;
 			libxml_disable_entity_loader(true);