process str_replace before urlencoding
This commit is contained in:
parent
fe7aa9926b
commit
ba0fdde51c
@ -1023,8 +1023,8 @@ function zid_init(&$a) {
|
||||
dbesc($tmp_str)
|
||||
);
|
||||
// try to avoid recursion - but send them home to do a proper magic auth
|
||||
$dest = '/' . urlencode($a->query_string);
|
||||
$dest = str_replace(array('?zid=','&zid='),array('?rzid=','&rzid='),$dest);
|
||||
$dest = '/' . urlencode($a->query_string);
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user