aboutsummaryrefslogtreecommitdiffstats
path: root/mod/pubsub.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-22 21:20:28 -0700
committerFriendika <info@friendika.com>2011-05-22 21:20:28 -0700
commit5996e2cd4c82834dace66f7bc4bd7a2ed5e4b293 (patch)
tree4ca8ee47e74231a1fc71184f517f0c6d5060e036 /mod/pubsub.php
parent576f8eda085b3996ebb4aec62d8f6c866c390836 (diff)
downloadvolse-hubzilla-5996e2cd4c82834dace66f7bc4bd7a2ed5e4b293.tar.gz
volse-hubzilla-5996e2cd4c82834dace66f7bc4bd7a2ed5e4b293.tar.bz2
volse-hubzilla-5996e2cd4c82834dace66f7bc4bd7a2ed5e4b293.zip
if no FB image and fb link is on our site, use Friendika logo for fb image. Otherwise it's going to end up being a random friend.
Diffstat (limited to 'mod/pubsub.php')
-rw-r--r--mod/pubsub.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/pubsub.php b/mod/pubsub.php
index 5d8ea2ed7..f829eb4d9 100644
--- a/mod/pubsub.php
+++ b/mod/pubsub.php
@@ -91,6 +91,11 @@ function pubsub_post(&$a) {
logger('pubsub: user-agent: ' . $_SERVER['HTTP_USER_AGENT'] );
logger('pubsub: data: ' . $xml, LOGGER_DATA);
+ if(! stristr($xml,'<?xml')) {
+ logger('pubsub_post: bad xml');
+ hub_post_return();
+ }
+
$nick = (($a->argc > 1) ? notags(trim($a->argv[1])) : '');
$contact_id = (($a->argc > 2) ? intval($a->argv[2]) : 0 );