aboutsummaryrefslogtreecommitdiffstats
path: root/include/onepoll.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-07 16:51:09 -0700
committerfriendica <info@friendica.com>2012-05-07 16:51:09 -0700
commit8a4e3cc3701c3278e35d917de526fd8b032709ab (patch)
treeb552b0a527befe5398dd1dc57408112378999b00 /include/onepoll.php
parent189a31e6287781e03a874b13e27dedefe2beedf3 (diff)
downloadvolse-hubzilla-8a4e3cc3701c3278e35d917de526fd8b032709ab.tar.gz
volse-hubzilla-8a4e3cc3701c3278e35d917de526fd8b032709ab.tar.bz2
volse-hubzilla-8a4e3cc3701c3278e35d917de526fd8b032709ab.zip
don't throw "did not contain xml" error if it's a valid rss that doesn't have the <?xml declaration
Diffstat (limited to 'include/onepoll.php')
-rw-r--r--include/onepoll.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/onepoll.php b/include/onepoll.php
index d80bf9780..a64922aa3 100644
--- a/include/onepoll.php
+++ b/include/onepoll.php
@@ -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()),