diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-02-20 08:09:19 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-02-20 08:09:19 +0000 |
| commit | 084d83612cca5c7eb13d029bab803ba386ae2ea9 (patch) | |
| tree | 694e08d4f539509c46857a22843fe72e8a877b7f /public/web_migrate.php | |
| parent | 0313846a9b5a28476c7a114b1b3a24367dec86c2 (diff) | |
ensure all set parameters are correctly transfered to trails by replacing use PATH_INFO with correct destructuring of REQUEST_URI and provide according tests, fixes #2030
Closes #2030
Merge request studip/studip!1329
Diffstat (limited to 'public/web_migrate.php')
| -rw-r--r-- | public/web_migrate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/web_migrate.php b/public/web_migrate.php index 216a1fd..02eeb95 100644 --- a/public/web_migrate.php +++ b/public/web_migrate.php @@ -34,7 +34,7 @@ $_language_path = init_i18n($_SESSION['_language']); $GLOBALS['template_factory'] = new Flexi_TemplateFactory('../templates/'); # get plugin class from request -$dispatch_to = $_SERVER['PATH_INFO'] ?: ''; +$dispatch_to = Request::path_info() ?: ''; $dispatcher = app(\Trails_Dispatcher::class); $dispatcher->trails_uri = $_SERVER['SCRIPT_NAME']; |
