From 82fcddb177639ae1a1884094ce3d7fbb8dbbafda Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Mon, 2 Sep 2024 10:12:51 +0200 Subject: [PATCH] [Web] Fix catch block in LDAP connection test --- data/web/inc/functions.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php index 3588d36ed..fc703c353 100644 --- a/data/web/inc/functions.inc.php +++ b/data/web/inc/functions.inc.php @@ -2373,9 +2373,7 @@ function identity_provider($_action = null, $_data = null, $_extra = null) { ]); try { $provider->connect(); - } catch (TypeError $e) { - return false; - } catch (\LdapRecord\Auth\BindException $e) { + } catch (Throwable $e) { return false; } break;