We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b574d5d commit 62e0b44Copy full SHA for 62e0b44
1 file changed
system/Session/Handlers/RedisHandler.php
@@ -85,7 +85,7 @@ public function __construct(AppConfig $config, string $ipAddress)
85
'port' => empty($matches[2]) ? self::REDIS_DEFAULT_PORT : $matches[2],
86
'password' => preg_match('#auth=([^\s&]+)#', $matches[3], $match) ? $match[1] : null,
87
'database' => preg_match('#database=(\d+)#', $matches[3], $match) ? (int) $match[1] : 0,
88
- 'timeout' => preg_match('#timeout=(\d+\.\d+)#', $matches[3], $match) ? (float) $match[1] : 0,
+ 'timeout' => preg_match('#timeout=(\d+\.\d+|\d+)#', $matches[3], $match) ? (float) $match[1] : 0,
89
];
90
91
preg_match('#prefix=([^\s&]+)#', $matches[3], $match) && $this->keyPrefix = $match[1];
0 commit comments