From 942adadec63805e9f6dbed63d7f8a4b69a597e91 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 13 Feb 2013 02:33:13 -0800 Subject: fix auto rmagic when visiting with zid --- mod/post.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/post.php') diff --git a/mod/post.php b/mod/post.php index 6fcdcb54e..b7c16ff9a 100644 --- a/mod/post.php +++ b/mod/post.php @@ -111,8 +111,14 @@ function post_init(&$a) { logger('mod_zot: auth success from ' . $x[0]['xchan_addr'] . ' for ' . $webbie); } + +// FIXME - we really want to save the return_url in the session before we visit rmagic. +// This does however prevent a recursion if you visit rmagic directly, as it would otherwise send you back here again. +// But z_root() probably isn't where you really want to go. + if(strstr($desturl,z_root() . '/rmagic')) goaway(z_root()); + goaway($desturl); } -- cgit v1.2.3