diff --git a/plugins/auth/lib/ycom_auth.php b/plugins/auth/lib/ycom_auth.php index 9df448d..38f6da0 100644 --- a/plugins/auth/lib/ycom_auth.php +++ b/plugins/auth/lib/ycom_auth.php @@ -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 = '';