fix diaspora's illegal webfinger xml before sending to parser
This commit is contained in:
parent
961e34f67f
commit
5b3155579a
1 changed files with 3 additions and 0 deletions
|
@ -535,6 +535,9 @@ function fetch_xrd_links($url) {
|
||||||
if ((! $xml) || (! stristr($xml,'<xrd')))
|
if ((! $xml) || (! stristr($xml,'<xrd')))
|
||||||
return array();
|
return array();
|
||||||
|
|
||||||
|
// fix diaspora's bad xml
|
||||||
|
$xml = str_replace(array('href="','"/>'),array('href="','"/>'),$xml);
|
||||||
|
|
||||||
$h = parse_xml_string($xml);
|
$h = parse_xml_string($xml);
|
||||||
if(! $h)
|
if(! $h)
|
||||||
return array();
|
return array();
|
||||||
|
|
Loading…
Reference in a new issue