From ba0fdde51cbaf12d0bf9f28c6f95421e5fadc695 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 Jan 2014 14:56:43 -0800 Subject: process str_replace before urlencoding --- include/identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index 9fba55da5..22d72687c 100644 --- a/include/identity.php +++ b/include/identity.php @@ -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); } -- cgit v1.2.3