mirror of
https://github.com/friendica/friendica
synced 2025-04-28 13:44:25 +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
|
@ -160,7 +160,7 @@ class Probe
|
|||
$ssl_connection_error = ($curlResult->getErrorNumber() == CURLE_COULDNT_CONNECT) || ($curlResult->getReturnCode() == 0);
|
||||
if ($curlResult->isSuccess()) {
|
||||
$xml = $curlResult->getBody();
|
||||
$xrd = XML::parseString($xml, false);
|
||||
$xrd = XML::parseString($xml, true);
|
||||
if (!empty($url)) {
|
||||
$host_url = 'https://' . $host;
|
||||
} else {
|
||||
|
@ -185,7 +185,7 @@ class Probe
|
|||
}
|
||||
|
||||
$xml = $curlResult->getBody();
|
||||
$xrd = XML::parseString($xml, false);
|
||||
$xrd = XML::parseString($xml, true);
|
||||
$host_url = 'http://'.$host;
|
||||
}
|
||||
if (!is_object($xrd)) {
|
||||
|
@ -936,7 +936,7 @@ class Probe
|
|||
}
|
||||
|
||||
// If it is not JSON, maybe it is XML
|
||||
$xrd = XML::parseString($data, false);
|
||||
$xrd = XML::parseString($data, true);
|
||||
if (!is_object($xrd)) {
|
||||
Logger::log("No webfinger data retrievable for ".$url, Logger::DEBUG);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue