From: Friendika Date: Fri, 3 Dec 2010 02:32:46 +0000 (-0800) Subject: ignore malformed xml before it hits the parser. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e09d164882677ed316ef2ea3ee1c8c361c761d90;p=friendica.git ignore malformed xml before it hits the parser. --- 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,'