aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_poll.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-01 00:59:10 -0700
committerFriendika <info@friendika.com>2011-04-01 00:59:10 -0700
commite33b6e0b5a1f444786d00a2666be1b23dc659c8a (patch)
tree0bd8630cf4930b1a12f16d02269392474779243e /mod/dfrn_poll.php
parentd728961cbf5ce3de7de65e37c900666e0f9f7358 (diff)
downloadvolse-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/dfrn_poll.php')
-rw-r--r--mod/dfrn_poll.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php
index fe9504deb..82ad70907 100644
--- a/mod/dfrn_poll.php
+++ b/mod/dfrn_poll.php
@@ -447,6 +447,19 @@ function dfrn_poll_content(&$a) {
));
}
+ switch($destination_url) {
+ case 'profile':
+ $dest = $a->get_baseurl() . '/profile/' . $profile . '?tab=profile';
+ break;
+ case 'photos':
+ $dest = $a->get_baseurl() . '/photos/' . $profile;
+ break;
+ case 'status':
+ default:
+ $dest = $a->get_baseurl() . '/profile/' . $profile;
+ break;
+ }
+
logger("dfrn_poll: sec profile: " . $s, LOGGER_DATA);
if(strlen($s) && strstr($s,'<?xml')) {
@@ -473,9 +486,10 @@ function dfrn_poll_content(&$a) {
);
}
$profile = $r[0]['nickname'];
- goaway((strlen($destination_url)) ? $destination_url : $a->get_baseurl() . '/profile/' . $profile);
+
+ goaway($dest);
}
- goaway($a->get_baseurl());
+ goaway($dest);
// NOTREACHED
}