mirror of
https://github.com/friendica/friendica
synced 2025-05-11 05:44:10 +02:00
Suppress XML logging of errors
This commit is contained in:
parent
ebb96faedd
commit
f521689ced
7 changed files with 32 additions and 24 deletions
|
@ -325,7 +325,7 @@ class Diaspora
|
|||
*/
|
||||
private static function verifyMagicEnvelope($envelope)
|
||||
{
|
||||
$basedom = XML::parseString($envelope);
|
||||
$basedom = XML::parseString($envelope, true);
|
||||
|
||||
if (!is_object($basedom)) {
|
||||
Logger::log("Envelope is no XML file");
|
||||
|
@ -451,7 +451,7 @@ class Diaspora
|
|||
$xml = $raw;
|
||||
}
|
||||
|
||||
$basedom = XML::parseString($xml);
|
||||
$basedom = XML::parseString($xml, true);
|
||||
|
||||
if (!is_object($basedom)) {
|
||||
Logger::log('Received data does not seem to be an XML. Discarding. '.$xml);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue