diff options
author | Friendika <info@friendika.com> | 2011-04-01 00:59:10 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-01 00:59:10 -0700 |
commit | e33b6e0b5a1f444786d00a2666be1b23dc659c8a (patch) | |
tree | 0bd8630cf4930b1a12f16d02269392474779243e /mod/redir.php | |
parent | d728961cbf5ce3de7de65e37c900666e0f9f7358 (diff) | |
download | volse-hubzilla-e33b6e0b5a1f444786d00a2666be1b23dc659c8a.tar.gz volse-hubzilla-e33b6e0b5a1f444786d00a2666be1b23dc659c8a.tar.bz2 volse-hubzilla-e33b6e0b5a1f444786d00a2666be1b23dc659c8a.zip |
redirect to symbolic rather than absolute URL locations
Diffstat (limited to 'mod/redir.php')
-rw-r--r-- | mod/redir.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/redir.php b/mod/redir.php index ac21aa17e..8d0c8f4b3 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -5,6 +5,7 @@ function redir_init(&$a) { if((! local_user()) || (! ($a->argc == 2)) || (! intval($a->argv[1]))) goaway($a->get_baseurl()); $cid = $a->argv[1]; + $url = ((x($_GET,'url')) ? $_GET['url'] : ''); $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($cid), @@ -37,8 +38,8 @@ function redir_init(&$a) { ); logger('mod_redir: ' . $r[0]['name'] . ' ' . $sec, LOGGER_DEBUG); - + $dest = (($url) ? '&destination_url=' . $url : ''); goaway ($r[0]['poll'] . '?dfrn_id=' . $dfrn_id - . '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec); + . '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest ); } |