From e09d164882677ed316ef2ea3ee1c8c361c761d90 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 2 Dec 2010 18:32:46 -0800 Subject: [PATCH] ignore malformed xml before it hits the parser. --- include/poller.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/poller.php b/include/poller.php index d97584ff90..ec1fef7a8b 100644 --- a/include/poller.php +++ b/include/poller.php @@ -115,6 +115,7 @@ logger('poller: handshake with url ' . $url . ' returns xml: ' . $xml, LOGGER_DATA); + if(! $xml) { logger("poller: $url appears to be dead - marking for death "); // dead connection - might be a transient event, or this might @@ -132,6 +133,15 @@ continue; } + if(! strstr($xml,'