aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php
index 78ed24074..551d5e1d0 100644
--- a/include/network.php
+++ b/include/network.php
@@ -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();