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/assets.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/assets.php')
| -rw-r--r-- | public/assets.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/assets.php b/public/assets.php index 8e06685..824f84c 100644 --- a/public/assets.php +++ b/public/assets.php @@ -15,7 +15,7 @@ require_once '../lib/bootstrap.php'; // Obtain request information -$uri = ltrim($_SERVER['PATH_INFO'], '/'); +$uri = ltrim(Request::path_info(), '/'); list($type, $id) = explode('/', $uri, 2); // Setup response |
