]> git.mxchange.org Git - friendica.git/commitdiff
Support feeds without XML headers
authorMatthew Exon <github.mexon@spamgourmet.com>
Tue, 3 Feb 2015 01:30:03 +0000 (02:30 +0100)
committerMatthew Exon <mat@exon.name>
Mon, 9 Feb 2015 10:21:27 +0000 (10:21 +0000)
include/onepoll.php

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