diff options
author | Robin Appelman <robin@icewind.nl> | 2023-06-01 22:11:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 22:11:55 +0200 |
commit | e81fdfefab6d46b9d326b70c278d52fbb941a431 (patch) | |
tree | 147a074c83b7bde969589b252067192d8691add1 /lib | |
parent | ff661045edd3a796d2a555e5a8d9762eb8ea30fb (diff) | |
parent | c52aaa3647b19ad38b761490f9648314441b0d47 (diff) | |
download | nextcloud-server-e81fdfefab6d46b9d326b70c278d52fbb941a431.tar.gz nextcloud-server-e81fdfefab6d46b9d326b70c278d52fbb941a431.zip |
Merge pull request #38568 from rawtaz/fix-redis-empty-password
redis: Do not try to authenticate with non-string password/user
Diffstat (limited to 'lib')
-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']; |