summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/IXR_Library.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/IXR_Library.php b/inc/IXR_Library.php
index 2b907519a..3f05eadc9 100644
--- a/inc/IXR_Library.php
+++ b/inc/IXR_Library.php
@@ -521,6 +521,12 @@ class IXR_Client extends DokuHTTPClient {
return false;
}
+ // Check HTTP Response code
+ if($this->status < 200 || $this->status > 206){
+ $this->xmlerror = new IXR_Error(-32300, 'transport error - HTTP status '.$this->status);
+ return false;
+ }
+
// Now parse what we've got back
$this->message = new IXR_Message($this->resp_body);
if (!$this->message->parse()) {