summaryrefslogtreecommitdiff
path: root/inc/IXR_Library.php
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2012-03-21 11:25:00 +0100
committerDominik Eckelmann <deckelmann@gmail.com>2012-03-21 11:25:00 +0100
commit96946cc94d3ecb3832e2a1ce35c49743e25329e1 (patch)
tree6b44d893b21c272a1c5442ddcdbe470432de19be /inc/IXR_Library.php
parentc2eb026d070a5ba9ba1ee8754c3a862a026a7ea8 (diff)
downloadrpg-96946cc94d3ecb3832e2a1ce35c49743e25329e1.tar.gz
rpg-96946cc94d3ecb3832e2a1ce35c49743e25329e1.tar.bz2
replaced $HTTP_RAW_POST_DATA with http_get_raw_post_data function
Diffstat (limited to 'inc/IXR_Library.php')
-rw-r--r--inc/IXR_Library.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/inc/IXR_Library.php b/inc/IXR_Library.php
index c8255e6d9..ce5a4d914 100644
--- a/inc/IXR_Library.php
+++ b/inc/IXR_Library.php
@@ -302,11 +302,12 @@ class IXR_Server {
}
function serve($data = false) {
if (!$data) {
- global $HTTP_RAW_POST_DATA;
- if (!$HTTP_RAW_POST_DATA) {
+
+ $postData = trim(http_get_raw_post_data());
+ if (!$postData) {
die('XML-RPC server accepts POST requests only.');
}
- $data = $HTTP_RAW_POST_DATA;
+ $data = $postData;
}
$this->message = new IXR_Message($data);
if (!$this->message->parse()) {