Fixed erroreous redirects
This commit is contained in:
parent
0b058565ba
commit
3d6564f7a8
5 changed files with 8 additions and 4 deletions
|
@ -30,6 +30,7 @@ class AuthController
|
|||
$context->layoutName = null;
|
||||
Auth::logout();
|
||||
\Chibi\Util\Url::forward(\Chibi\Router::linkTo(['IndexController', 'indexAction']));
|
||||
exit;
|
||||
}
|
||||
|
||||
public static function observeWorkFinish()
|
||||
|
@ -50,8 +51,9 @@ class AuthController
|
|||
{
|
||||
\Chibi\Util\Url::forward(\Chibi\Util\Url::makeAbsolute($_SESSION['login-redirect-url']));
|
||||
unset($_SESSION['login-redirect-url']);
|
||||
return;
|
||||
exit;
|
||||
}
|
||||
\Chibi\Util\Url::forward(\Chibi\Router::linkTo(['IndexController', 'indexAction']));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ class LogController
|
|||
'filter' => $formQuery,
|
||||
'page' => 1
|
||||
]));
|
||||
return;
|
||||
exit;
|
||||
}
|
||||
|
||||
Access::assert(Privilege::ViewLog);
|
||||
|
|
|
@ -23,7 +23,7 @@ class PostController
|
|||
'additionalInfo' => $additionalInfo,
|
||||
'query' => $formQuery]);
|
||||
\Chibi\Util\Url::forward($url);
|
||||
return;
|
||||
exit;
|
||||
}
|
||||
|
||||
$query = trim($query);
|
||||
|
|
|
@ -155,5 +155,6 @@ class TagController
|
|||
if ($suppliedOldPage != 0 and $suppliedOldQuery == $suppliedQuery)
|
||||
$params['page'] = $suppliedOldPage;
|
||||
\Chibi\Util\Url::forward(\Chibi\Router::linkTo(['PostController', 'listAction'], $params));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -128,6 +128,7 @@ class UserController
|
|||
|
||||
\Chibi\Util\Url::forward(\Chibi\Router::linkTo(['IndexController', 'indexAction']));
|
||||
LogHelper::log('{user} removed {subject}\'s account', ['subject' => TextHelper::reprUser($name)]);
|
||||
exit;
|
||||
}
|
||||
|
||||
public function settingsAction($name)
|
||||
|
@ -348,7 +349,7 @@ class UserController
|
|||
if (Auth::isLoggedIn())
|
||||
{
|
||||
\Chibi\Util\Url::forward(\Chibi\Router::linkTo(['IndexController', 'indexAction']));
|
||||
return;
|
||||
exit;
|
||||
}
|
||||
|
||||
$suppliedName = InputHelper::get('name');
|
||||
|
|
Loading…
Reference in a new issue