From c52aaa3647b19ad38b761490f9648314441b0d47 Mon Sep 17 00:00:00 2001 From: "Leo R. Lundgren" Date: Thu, 1 Jun 2023 02:03:20 +0200 Subject: redis: Do not try to authenticate with non-string password/user Signed-off-by: Leo R. Lundgren --- lib/private/RedisFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/private/RedisFactory.php b/lib/private/RedisFactory.php index 5c38ed0807d..6b509b1c1a9 100644 --- a/lib/private/RedisFactory.php +++ b/lib/private/RedisFactory.php @@ -72,8 +72,8 @@ class RedisFactory { } $auth = null; - if (isset($config['password']) && $config['password'] !== '') { - if (isset($config['user']) && $config['user'] !== '') { + if (isset($config['password']) && (string)$config['password'] !== '') { + if (isset($config['user']) && (string)$config['user'] !== '') { $auth = [$config['user'], $config['password']]; } else { $auth = $config['password']; -- cgit v1.2.3