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
1 changed files with 3 additions and 0 deletions

View File

@ -535,6 +535,9 @@ function fetch_xrd_links($url) {
if ((! $xml) || (! stristr($xml,'<xrd')))
return array();
// fix diaspora's bad xml
$xml = str_replace(array('href=&quot;','&quot;/>'),array('href="','"/>'),$xml);
$h = parse_xml_string($xml);
if(! $h)
return array();