From f5d19950409e2a413d87a2ba045c7d2644751855 Mon Sep 17 00:00:00 2001 From: afornerot Date: Tue, 10 Jan 2023 16:10:52 +0100 Subject: [PATCH] maj ninegate --- src/Controller/SecurityController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 41ff737..3d480da 100755 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -382,7 +382,7 @@ class SecurityController extends AbstractController $request->getSession()->invalidate(); $url = $this->getParameter('oauthLogouturl'); - if ($url) { + if ($url && $idtoken) { $callback = ($request->isSecure() ? 'https://' : 'http://').str_replace('//', '/', $this->getParameter('appWeburl').$this->getParameter('appAlias').$this->generateUrl('app_home')); $callback = substr($callback, 0, -1);