From e82571beed1808f3df99d5af315bff32582fa4e7 Mon Sep 17 00:00:00 2001 From: onli Date: Sat, 27 Apr 2019 13:37:53 +0200 Subject: [PATCH] Fix: invalid sizeof in XML/RPC Third parameter is supposed to be a bool anyway --- bundled-libs/XML/RPC.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundled-libs/XML/RPC.php b/bundled-libs/XML/RPC.php index 94daa103..617181cc 100644 --- a/bundled-libs/XML/RPC.php +++ b/bundled-libs/XML/RPC.php @@ -1486,7 +1486,7 @@ class XML_RPC_Message extends XML_RPC_Base $data = substr($data, 0, strpos($data, "") + 17); $this->response_payload = $data; - if (!xml_parse($parser_resource, $data, sizeof($data))) { + if (!xml_parse($parser_resource, $data)) { // thanks to Peter Kocks if (xml_get_current_line_number($parser_resource) == 1) { $errstr = 'XML error at line 1, check URL';