summaryrefslogtreecommitdiff
path: root/inc/IXR_Library.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-03-23 10:02:01 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-03-23 10:02:01 +0100
commita2b7fdb8e14f02aff9ab4b1b5646f640123ec0c7 (patch)
tree676ba2c0959bb1d99c34074a9ac4043862d91871 /inc/IXR_Library.php
parent7518cd81d69733d64ee5c80a8e5df4fcaa33246d (diff)
parentb967e5fc8fd93226eba7926c13b73b93878f182b (diff)
downloadrpg-a2b7fdb8e14f02aff9ab4b1b5646f640123ec0c7.tar.gz
rpg-a2b7fdb8e14f02aff9ab4b1b5646f640123ec0c7.tar.bz2
Merge branch 'master' of https://github.com/dom-mel/dokuwiki into pull-request-87
* 'master' of https://github.com/dom-mel/dokuwiki: (38 commits) removed requires, changed conf check in xmlrpc.php removed require_once for autoloaded fulltext.php updated comment added dokuwiki.getXMLRPCAPIVersion and wiki.getRPCVersionSupported added RPC_CALL_ADD event. replaced $HTTP_RAW_POST_DATA with http_get_raw_post_data function changed error code for unauthorized method calls. typo fixes moved plugin and core method calls to seperate function corrected comment added getapi methods to remote plugin removed unused class fixed testcase refactored RemoteAccessDenied to RemoteAccessDeniedException adjusted test cases delegate file and date transformation to remote library treat null as empty array added missing getTime added missing getVersion set login as public method ...
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 80b534b2e..d1e877813 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()) {