aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/institute/overview.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/app/controllers/institute/overview.php b/app/controllers/institute/overview.php
index 603e632..db83115 100644
--- a/app/controllers/institute/overview.php
+++ b/app/controllers/institute/overview.php
@@ -60,18 +60,13 @@ class Institute_OverviewController extends AuthenticatedController
{
//gibt es eine Anweisung zur Umleitung?
$redirect_to = Request::get('redirect_to');
- if (
- $redirect_to
- && !(
- str_starts_with($redirect_to, '#')
- || str_starts_with($redirect_to, '?')
- )
- ) {
+ if ($redirect_to) {
if (!is_internal_url($redirect_to)) {
throw new Exception('Invalid redirection');
}
- $this->redirect(URLHelper::getURL($redirect_to, ['cid' => $this->institute_id]));
+ $this->response->add_header('Location', URLHelper::getURL($redirect_to, ['cid' => $this->institute_id]));
+ $this->render_nothing();
return;
}