Guard against emtpy referrers
This commit is contained in:
parent
6f390be2bf
commit
d1194b57a0
@ -321,8 +321,10 @@ class APnutI
|
|||||||
$this->logger->info(
|
$this->logger->info(
|
||||||
"Checking auth status for app: {$this->app_name}: {$log_str}"
|
"Checking auth status for app: {$this->app_name}: {$log_str}"
|
||||||
);
|
);
|
||||||
|
if (isset($_SERVER['HTTP_REFERER'])) {
|
||||||
$this->logger->info('Referrer: '.($_SERVER['HTTP_REFERER'] ?? 'Unknown'));
|
$this->logger->info('Referrer: '.($_SERVER['HTTP_REFERER'] ?? 'Unknown'));
|
||||||
$_SESSION[$this->token_redirect_after_auth] = $_SERVER['HTTP_REFERER'];
|
$_SESSION[$this->token_redirect_after_auth] = $_SERVER['HTTP_REFERER'];
|
||||||
|
}
|
||||||
return $is_authenticated;
|
return $is_authenticated;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user