1
0
Fork 0

fix diaspora's illegal webfinger xml before sending to parser

This commit is contained in:
friendica 2011-12-09 16:46:18 -08:00
parent 961e34f67f
commit 5b3155579a

View file

@ -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=&quot;','&quot;/>'),array('href="','"/>'),$xml);
$h = parse_xml_string($xml); $h = parse_xml_string($xml);
if(! $h) if(! $h)
return array(); return array();