aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-13 00:14:01 -0800
committerfriendica <info@friendica.com>2013-02-13 00:14:01 -0800
commitd1e5337c72a358acd94f5e5aa53f96ce05abd6c5 (patch)
tree5fb332591fd14df7a9953c5dfa80c034574b9bfd /mod
parent02c636ed23ffde0b6423c2676cacc7ed88dc45de (diff)
downloadvolse-hubzilla-d1e5337c72a358acd94f5e5aa53f96ce05abd6c5.tar.gz
volse-hubzilla-d1e5337c72a358acd94f5e5aa53f96ce05abd6c5.tar.bz2
volse-hubzilla-d1e5337c72a358acd94f5e5aa53f96ce05abd6c5.zip
recursion and typo in rmagic with zid
Diffstat (limited to 'mod')
-rw-r--r--mod/post.php3
-rw-r--r--mod/rmagic.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/mod/post.php b/mod/post.php
index b59600bff..6fcdcb54e 100644
--- a/mod/post.php
+++ b/mod/post.php
@@ -111,7 +111,8 @@ function post_init(&$a) {
logger('mod_zot: auth success from ' . $x[0]['xchan_addr'] . ' for ' . $webbie);
}
-
+ if(strstr($desturl,z_root() . '/rmagic'))
+ goaway(z_root());
goaway($desturl);
}
diff --git a/mod/rmagic.php b/mod/rmagic.php
index 910ccd40f..b8c1c6553 100644
--- a/mod/rmagic.php
+++ b/mod/rmagic.php
@@ -14,7 +14,7 @@ function rmagic_init(&$a) {
if($r) {
if($r[0]['hubloc_url'] === z_root())
goaway(z_root() . '/login');
- $dest = z_root() . '/' . str_replace('zid=','zid_=',$get_app()->query_string);
+ $dest = z_root() . '/' . str_replace('zid=','zid_=',get_app()->query_string);
goaway($r[0]['hubloc_url'] . '/magic' . '?f=&dest=' . $dest);
}
}