Fix: invalid sizeof in XML/RPC
Third parameter is supposed to be a bool anyway
This commit is contained in:
parent
bcbc3e41ef
commit
e82571beed
@ -1486,7 +1486,7 @@ class XML_RPC_Message extends XML_RPC_Base
|
|||||||
$data = substr($data, 0, strpos($data, "</methodResponse>") + 17);
|
$data = substr($data, 0, strpos($data, "</methodResponse>") + 17);
|
||||||
$this->response_payload = $data;
|
$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>
|
// thanks to Peter Kocks <peter.kocks@baygate.com>
|
||||||
if (xml_get_current_line_number($parser_resource) == 1) {
|
if (xml_get_current_line_number($parser_resource) == 1) {
|
||||||
$errstr = 'XML error at line 1, check URL';
|
$errstr = 'XML error at line 1, check URL';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user