]> git.mxchange.org Git - friendica.git/commitdiff
fix diaspora's illegal webfinger xml before sending to parser
authorfriendica <info@friendica.com>
Sat, 10 Dec 2011 00:46:18 +0000 (16:46 -0800)
committerfriendica <info@friendica.com>
Sat, 10 Dec 2011 00:46:18 +0000 (16:46 -0800)
include/network.php

index 78ed24074367e24d4fada4dc14103f55667f657f..551d5e1d0f7ee87ef39b0f817bec9659b90de91c 100644 (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();