mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #38568 from rawtaz/fix-redis-empty-password
redis: Do not try to authenticate with non-string password/user
This commit is contained in:
commit
e81fdfefab
1 changed files with 2 additions and 2 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue