diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-04-18 10:33:42 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2023-04-18 10:33:42 +0000 |
| commit | 89db6306e685d64bd92de475bc6924440ff97621 (patch) | |
| tree | 6ed3f3d8bdb4755aad4c34b9f010ea1bc582fbe0 /app | |
| parent | 92f2cf7d0b05af98b9c9fc7708004f39cad2e89e (diff) | |
fix redirect, fixes #2551
Closes #2551
Merge request studip/studip!1722
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/admin/install.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/admin/install.php b/app/controllers/admin/install.php index e25c8d5..0054445 100644 --- a/app/controllers/admin/install.php +++ b/app/controllers/admin/install.php @@ -403,11 +403,12 @@ class Admin_InstallController extends Trails_Controller public function migrate_action() { + URLHelper::setBaseURL($_SESSION['STUDIP_INSTALLATION']['system']['ABSOLUTE_URI_STUDIP']); + unset($_SESSION['STUDIP_INSTALLATION']); session_destroy(); - header('Location: ' . dirname($_SERVER['SCRIPT_NAME']) . '/web_migrate.php'); - die; + $this->redirect(URLHelper::getURL('web_migrate.php')); } public function session_error_action() |
