From f3dec069e15927ee56dba0292f63f1fe15e26859 Mon Sep 17 00:00:00 2001 From: Fenris Wolf Date: Mon, 22 Sep 2025 01:00:27 +0200 Subject: [PATCH] [mod] auth_backend:try-catch for source-read --- source/overwrites/auth_backend.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/overwrites/auth_backend.php b/source/overwrites/auth_backend.php index 80c6be1..a30ef7e 100644 --- a/source/overwrites/auth_backend.php +++ b/source/overwrites/auth_backend.php @@ -75,8 +75,15 @@ class class_auth_backend ] ) ); - $data = $realm->source->read(); - return ($data !== null); + try + { + $data = $realm->source->read(); + return ($data !== null); + } + catch (\Throwable $throwable) + { + return false; + } } } }