mangled urls on redirects

(cherry picked from commit 5ce50d0a2e)
This commit is contained in:
zotlabs
2018-07-18 17:05:38 -07:00
committed by Mario
parent 4a6f775334
commit 931afe98b1
8 changed files with 17 additions and 16 deletions

View File

@@ -1712,7 +1712,7 @@ function zid_init() {
$query = str_replace(array('?zid=','&zid='),array('?rzid=','&rzid='),$query);
$dest = '/' . urlencode($query);
if($r && ($r[0]['hubloc_url'] != z_root()) && (! strstr($dest,'/magic')) && (! strstr($dest,'/rmagic'))) {
goaway($r[0]['hubloc_url'] . '/magic' . '?f=&rev=1&owa=1&dest=' . z_root() . $dest);
goaway($r[0]['hubloc_url'] . '/magic' . '?f=&rev=1&owa=1&bdest=' . bin2hex(z_root() . $dest));
}
else
logger('No hubloc found.');