aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-31 17:44:34 -0700
committerfriendica <info@friendica.com>2012-03-31 17:44:34 -0700
commite6fd6bfd89ada9b5aeea8fcac1614546deba85aa (patch)
tree1fdb0401ee9bf7156477841d8d69f8316122499e /include/network.php
parent2147e0a71fab98fd6e11b1ca54e46821c8829213 (diff)
downloadvolse-hubzilla-e6fd6bfd89ada9b5aeea8fcac1614546deba85aa.tar.gz
volse-hubzilla-e6fd6bfd89ada9b5aeea8fcac1614546deba85aa.tar.bz2
volse-hubzilla-e6fd6bfd89ada9b5aeea8fcac1614546deba85aa.zip
more error handling
Diffstat (limited to 'include/network.php')
-rwxr-xr-xinclude/network.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php
index 22157ff18..9e1ed2091 100755
--- a/include/network.php
+++ b/include/network.php
@@ -364,6 +364,9 @@ function lrdd($uri, $debug = false) {
logger('lrdd: host_meta: ' . $xml, LOGGER_DATA);
+ if(! stristr($xml,'<xrd'))
+ return array();
+
$h = parse_xml_string($xml);
if(! $h)
return array();