mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Fix deprecated function call and potential type error in XMLRPC request parser
This commit is contained in:
parent
df6292b202
commit
57d7821bcc
1 changed files with 5 additions and 2 deletions
|
|
@ -1219,8 +1219,11 @@ class Context
|
||||||
$GLOBALS['HTTP_RAW_POST_DATA'] = '';
|
$GLOBALS['HTTP_RAW_POST_DATA'] = '';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
libxml_disable_entity_loader(true);
|
if (PHP_VERSION_ID < 80000)
|
||||||
$params = Rhymix\Framework\Parsers\XMLRPCParser::parse($GLOBALS['HTTP_RAW_POST_DATA']);
|
{
|
||||||
|
libxml_disable_entity_loader(true);
|
||||||
|
}
|
||||||
|
$params = Rhymix\Framework\Parsers\XMLRPCParser::parse($GLOBALS['HTTP_RAW_POST_DATA']) ?: [];
|
||||||
}
|
}
|
||||||
elseif($request_method === 'JSON')
|
elseif($request_method === 'JSON')
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue