diff options
author | Leo R. Lundgren <leo@finalresort.org> | 2023-06-01 02:03:20 +0200 |
---|---|---|
committer | Leo R. Lundgren <leo@finalresort.org> | 2023-06-01 13:08:57 +0200 |
commit | c52aaa3647b19ad38b761490f9648314441b0d47 (patch) | |
tree | 57b7d012a609d21c170313cf85f03d8f98a99716 /lib/private/RedisFactory.php | |
parent | 990775d5a2b41ac1e6a68480f0a6c48437f1007a (diff) | |
download | nextcloud-server-c52aaa3647b19ad38b761490f9648314441b0d47.tar.gz nextcloud-server-c52aaa3647b19ad38b761490f9648314441b0d47.zip |
redis: Do not try to authenticate with non-string password/user
Signed-off-by: Leo R. Lundgren <leo@finalresort.org>
Diffstat (limited to 'lib/private/RedisFactory.php')
-rw-r--r-- | lib/private/RedisFactory.php | 4 |
1 files changed, 2 insertions, 2 deletions
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']; |