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/dispatch.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/dispatch.php')
| -rw-r--r-- | public/dispatch.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/public/dispatch.php b/public/dispatch.php index b6f6847..3bd9291 100644 --- a/public/dispatch.php +++ b/public/dispatch.php @@ -21,7 +21,5 @@ require '../lib/bootstrap.php'; // prepare environment URLHelper::setBaseUrl($GLOBALS['ABSOLUTE_URI_STUDIP']); -$request_uri = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '/'; - $dispatcher = app(\Trails_Dispatcher::class); -$dispatcher->dispatch($request_uri); +$dispatcher->dispatch(Request::path_info()); |
