aboutsummaryrefslogtreecommitdiffstats
path: root/mod/redir.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-25 13:51:39 -0800
committerFriendika <info@friendika.com>2010-12-25 13:51:39 -0800
commitd6a75a0391bfe2021cca0bba9f054044ef79cab7 (patch)
treeb2ecf90284c3406b18b9fba04d042a3ff969a611 /mod/redir.php
parent7b51713ba33e442c57e3e4b242a48cf2bdb32f75 (diff)
downloadvolse-hubzilla-d6a75a0391bfe2021cca0bba9f054044ef79cab7.tar.gz
volse-hubzilla-d6a75a0391bfe2021cca0bba9f054044ef79cab7.tar.bz2
volse-hubzilla-d6a75a0391bfe2021cca0bba9f054044ef79cab7.zip
secure profile redirect failed with duplex relationship
Diffstat (limited to 'mod/redir.php')
-rw-r--r--mod/redir.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/redir.php b/mod/redir.php
index cc58b9cd1..ac21aa17e 100644
--- a/mod/redir.php
+++ b/mod/redir.php
@@ -6,7 +6,7 @@ function redir_init(&$a) {
goaway($a->get_baseurl());
$cid = $a->argv[1];
- $r = q("SELECT `network`, `issued-id`, `dfrn-id`, `duplex`, `poll` FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
+ $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
intval($cid),
intval(local_user())
);
@@ -36,8 +36,9 @@ function redir_init(&$a) {
intval(time() + 45)
);
+ logger('mod_redir: ' . $r[0]['name'] . ' ' . $sec, LOGGER_DEBUG);
+
goaway ($r[0]['poll'] . '?dfrn_id=' . $dfrn_id
-// . '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile');
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec);
}