don't throw "did not contain xml" error if it's a valid rss that doesn't have the <?xml declaration

pull/292/head
friendica 2012-05-07 16:51:09 -07:00
rodzic 189a31e628
commit 8a4e3cc370
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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()),