aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_poll.php
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2010-12-26 08:18:10 +0100
committerroot <root@diekershoff.homeunix.net>2010-12-26 08:18:10 +0100
commit3208d6afcbcf6e74ca5d0ac30be1559327e00bf9 (patch)
treec940d0870729dbeb70845a96f36a6a15926dd9f2 /mod/dfrn_poll.php
parentc6a93d5cec05e9282b2f2d26fdfbc93175ed2b06 (diff)
parent10dda88684331366b10967981e661acf5b229ac6 (diff)
downloadvolse-hubzilla-3208d6afcbcf6e74ca5d0ac30be1559327e00bf9.tar.gz
volse-hubzilla-3208d6afcbcf6e74ca5d0ac30be1559327e00bf9.tar.bz2
volse-hubzilla-3208d6afcbcf6e74ca5d0ac30be1559327e00bf9.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/dfrn_poll.php')
-rw-r--r--mod/dfrn_poll.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php
index 22d2ee40f..52272efad 100644
--- a/mod/dfrn_poll.php
+++ b/mod/dfrn_poll.php
@@ -99,18 +99,18 @@ function dfrn_poll_init(&$a) {
dbesc($sec)
);
if(! count($r)) {
- xml_status(3);
+ xml_status(3, 'No ticket');
// NOTREACHED
}
$orig_id = $r[0]['dfrn_id'];
- if(strpos(':',$orig_id))
+ if(strpos($orig_id, ':'))
$orig_id = substr($orig_id,2);
$c = q("SELECT * FROM `contact` WHERE `id` = %d LIMIT 1",
intval($r[0]['cid'])
);
if(! count($c)) {
- xml_status(3);
+ xml_status(3, 'No profile');
}
$contact = $c[0];
@@ -134,9 +134,9 @@ function dfrn_poll_init(&$a) {
$final_dfrn_id = substr($final_dfrn_id,2);
if($final_dfrn_id != $orig_id) {
-
+ logger('profile_check: ' . $final_dfrn_id . ' != ' . $orig_id, LOGGER_DEBUG);
// did not decode properly - cannot trust this site
- xml_status(3);
+ xml_status(3, 'Bad decryption');
}
header("Content-type: text/xml");