From 7e9162ef06b4719723941679e55af079421ae475 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 7 Sep 2017 18:19:49 -0700 Subject: there's the problem --- Zotlabs/Module/Magic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Module/Magic.php') diff --git a/Zotlabs/Module/Magic.php b/Zotlabs/Module/Magic.php index 3fe0e1e35..342c11eb9 100644 --- a/Zotlabs/Module/Magic.php +++ b/Zotlabs/Module/Magic.php @@ -151,7 +151,7 @@ class Magic extends \Zotlabs\Web\Controller { $j = json_decode($x['body'],true); if($j['success'] && $j['token']) { $x = strpbrk($dest,'?&'); - $args = (($x) ? '&owt=' . $token : '?f=&owt=' . $token) . (($delegate) ? '&delegate=1' : ''); + $args = (($x) ? '&owt=' . $j['token'] : '?f=&owt=' . $j['token']) . (($delegate) ? '&delegate=1' : ''); goaway($dest . $args); } } -- cgit v1.2.3