recursion and typo in rmagic with zid
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user