aboutsummaryrefslogtreecommitdiff
path: root/lib/functions.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-17 18:48:55 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-17 18:48:55 +0100
commit6c0bd45459247e26f5de4b34fe519dcd3bcdb380 (patch)
tree408ece460fe0a892c832e5b56e0bbedcd8dd4174 /lib/functions.php
parent15d5590657faf962b8a2b7895af94a4243859e67 (diff)
handle access denied exception correctly and don't duplicate redirect to login...
Closes #6375 Merge request studip/studip!4836 (cherry picked from commit 431fda0deda433186c5ea5740e2a2b120d2c1a14) 2fb81ba6 handle access denied exception correctly and don't duplicate redirect to login... Co-authored-by: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Diffstat (limited to 'lib/functions.php')
-rw-r--r--lib/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/functions.php b/lib/functions.php
index 82fd5ac..cbc0e64 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -1127,7 +1127,7 @@ function studip_default_exception_handler($exception) {
$status = 403;
$template = 'check_object_exception';
} elseif ($exception instanceof LoginException) {
- $_SESSION['redirect_after_login'] ??= Request::url();
+ $_SESSION['redirect_after_login'] = Request::url();
sess()->save();
header('Location: ' . URLHelper::getScriptURL('dispatch.php/login'));
exit;