aboutsummaryrefslogtreecommitdiff
path: root/lib/functions.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-17 17:49:30 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-17 17:49:30 +0100
commit431fda0deda433186c5ea5740e2a2b120d2c1a14 (patch)
treeb2cd5c13f77c5e86797db649eb27a4a8e683b87f /lib/functions.php
parent2435dab6002d6f826302cf31dc6bf5ada9923efa (diff)
handle access denied exception correctly and don't duplicate redirect to login...
Closes #6375 Merge request studip/studip!4836
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 df63256..6621014 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -1129,7 +1129,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;