Skip to content

Commit 66e6db9

Browse files
committed
Referer to Logout prüft ob Logout ID vorhanden ist
1 parent 03c893a commit 66e6db9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

plugins/auth/lib/ycom_auth.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,13 @@ public static function cleanReferer(string $refererURL): string
586586
$returnUrl .= '?' . $url['query'];
587587
}
588588

589-
$referer_to_logout = strpos($returnUrl, rex_getUrl(rex_config::get('ycom/auth', 'article_id_logout', '')));
589+
$article_id_logout = rex_config::get('ycom/auth', 'article_id_logout', '');
590+
if ($article_id_logout > 0) {
591+
$referer_to_logout = strpos($returnUrl, rex_getUrl(rex_config::get('ycom/auth', 'article_id_logout', '')));
592+
} else {
593+
$referer_to_logout = false;
594+
}
595+
590596
if (false === $referer_to_logout) {
591597
} else {
592598
$returnUrl = '';

0 commit comments

Comments
 (0)