From f4e47f168feb1075c30ba478e823f61dbcd26e02 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 22 May 2011 06:05:01 -0700 Subject: if xml doesn't parse, don't process it further --- boot.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 0704c2305..9581541bd 100644 --- a/boot.php +++ b/boot.php @@ -1508,6 +1508,8 @@ function lrdd($uri) { logger('lrdd: host_meta: ' . $xml, LOGGER_DATA); $h = parse_xml_string($xml); + if(! $h) + return array(); $arr = convert_xml_element_to_array($h); @@ -1672,6 +1674,9 @@ function fetch_xrd_links($url) { logger('fetch_xrd_links: ' . $xml, LOGGER_DATA); $h = parse_xml_string($xml); + if(! $h) + return array(); + $arr = convert_xml_element_to_array($h); $links = array(); -- cgit v1.2.3 From ea0a28ebfb10e1a42e2f28b076b8d4e8d79f8e53 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 22 May 2011 14:20:31 -0700 Subject: removed buggy debug code ;) --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 9581541bd..1a6bf622c 100644 --- a/boot.php +++ b/boot.php @@ -4,7 +4,7 @@ set_time_limit(0); ini_set('pcre.backtrack_limit', 250000); -define ( 'FRIENDIKA_VERSION', '2.2.987' ); +define ( 'FRIENDIKA_VERSION', '2.2.988' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); define ( 'DB_UPDATE_VERSION', 1054 ); -- cgit v1.2.3