Fix: invalid sizeof in XML/RPC

Third parameter is supposed to be a bool anyway
This commit is contained in:
onli 2019-04-27 13:37:53 +02:00
parent bcbc3e41ef
commit e82571beed

View File

@ -1486,7 +1486,7 @@ class XML_RPC_Message extends XML_RPC_Base
$data = substr($data, 0, strpos($data, "</methodResponse>") + 17);
$this->response_payload = $data;
if (!xml_parse($parser_resource, $data, sizeof($data))) {
if (!xml_parse($parser_resource, $data)) {
// thanks to Peter Kocks <peter.kocks@baygate.com>
if (xml_get_current_line_number($parser_resource) == 1) {
$errstr = 'XML error at line 1, check URL';