]> git.mxchange.org Git - friendica.git/commitdiff
don't throw "did not contain xml" error if it's a valid rss that doesn't have the...
authorfriendica <info@friendica.com>
Mon, 7 May 2012 23:51:09 +0000 (16:51 -0700)
committerfriendica <info@friendica.com>
Mon, 7 May 2012 23:51:09 +0000 (16:51 -0700)
include/onepoll.php

index d80bf97800906f04ac7be5512c11f86221e26e4f..a64922aa323e808576df96416335eaec910622ca 100644 (file)
@@ -456,7 +456,7 @@ function onepoll_run($argv, $argc){
 
        if($xml) {
                logger('poller: received xml : ' . $xml, LOGGER_DATA);
-                       if(! strstr($xml,'<?xml')) {
+                       if((! strstr($xml,'<?xml')) && (! strstr($xml,'<rss'))) {
                        logger('poller: post_handshake: response from ' . $url . ' did not contain XML.');
                        $r = q("UPDATE `contact` SET `last-update` = '%s' WHERE `id` = %d LIMIT 1",
                                dbesc(datetime_convert()),