aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-09 14:10:51 -0800
committerfriendica <info@friendica.com>2014-01-09 14:10:51 -0800
commitbf31ec04cfceebc2657a8a573580cff036db5bef (patch)
treeda4646411f6946e7cfecd86cc821a22d07281bb9 /include/identity.php
parentc6b9e443530fa2598f931571a0aa026b7bef8992 (diff)
parentacdf053a0bec73acaad3f6c0e0625aa860a4b9b3 (diff)
downloadvolse-hubzilla-bf31ec04cfceebc2657a8a573580cff036db5bef.tar.gz
volse-hubzilla-bf31ec04cfceebc2657a8a573580cff036db5bef.tar.bz2
volse-hubzilla-bf31ec04cfceebc2657a8a573580cff036db5bef.zip
Merge pull request #259 from zzottel/master
Finish up channel/ plinks
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php
index 5e25244e6..9fba55da5 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -1023,7 +1023,7 @@ function zid_init(&$a) {
dbesc($tmp_str)
);
// try to avoid recursion - but send them home to do a proper magic auth
- $dest = '/' . $a->query_string;
+ $dest = '/' . urlencode($a->query_string);
$dest = str_replace(array('?zid=','&zid='),array('?rzid=','&rzid='),$dest);
if($r && ($r[0]['hubloc_url'] != z_root()) && (! strstr($dest,'/magic')) && (! strstr($dest,'/rmagic'))) {
goaway($r[0]['hubloc_url'] . '/magic' . '?f=&rev=1&dest=' . z_root() . $dest);
@@ -1140,4 +1140,4 @@ function is_foreigner($s) {
function is_member($s) {
return((is_foreigner($s)) ? false : true);
-} \ No newline at end of file
+}