aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-09 16:46:18 -0800
committerfriendica <info@friendica.com>2011-12-09 16:46:18 -0800
commit5b3155579ad58c16daa6a3c7c69d53482357c506 (patch)
tree8713f57a4fbee46f6958c5680ba8d2e34a88ba21 /include/network.php
parent961e34f67f477d18619d7d9a4aa8856a879b679a (diff)
downloadvolse-hubzilla-5b3155579ad58c16daa6a3c7c69d53482357c506.tar.gz
volse-hubzilla-5b3155579ad58c16daa6a3c7c69d53482357c506.tar.bz2
volse-hubzilla-5b3155579ad58c16daa6a3c7c69d53482357c506.zip
fix diaspora's illegal webfinger xml before sending to parser
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();