Skip to content

Commit

Permalink
Referer to Logout prüft ob Logout ID vorhanden ist
Browse files Browse the repository at this point in the history
  • Loading branch information
dergel committed Aug 22, 2024
1 parent 03c893a commit 66e6db9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/auth/lib/ycom_auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,13 @@ public static function cleanReferer(string $refererURL): string
$returnUrl .= '?' . $url['query'];
}

$referer_to_logout = strpos($returnUrl, rex_getUrl(rex_config::get('ycom/auth', 'article_id_logout', '')));
$article_id_logout = rex_config::get('ycom/auth', 'article_id_logout', '');
if ($article_id_logout > 0) {
$referer_to_logout = strpos($returnUrl, rex_getUrl(rex_config::get('ycom/auth', 'article_id_logout', '')));
} else {
$referer_to_logout = false;
}

if (false === $referer_to_logout) {
} else {
$returnUrl = '';
Expand Down

0 comments on commit 66e6db9

Please sign in to comment.