diff options
author | Andrey Andreev <narf@devilix.net> | 2021-01-05 13:28:01 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2021-01-05 13:28:01 +0100 |
commit | 04fa59834e4f6906f383acf13f921104d397cf96 (patch) | |
tree | 7192ec26e355df3b7c7f52d637078142b7ccbb8b /system/libraries/Session/drivers | |
parent | 18718545e0faa98d62df3f65d045d84494ec29ca (diff) |
[ci skip] Add TLS support for Session library Redis connection strings (related: issue #5982, PR #5983)
Diffstat (limited to 'system/libraries/Session/drivers')
-rw-r--r-- | system/libraries/Session/drivers/Session_redis_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php index 1db02521e..df99cc74a 100644 --- a/system/libraries/Session/drivers/Session_redis_driver.php +++ b/system/libraries/Session/drivers/Session_redis_driver.php @@ -137,7 +137,7 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle { $save_path = array('path' => $matches[1]); } - elseif (preg_match('#(?:tcp://)?([^:?]+)(?:\:(\d+))?(?<options>\?.+)?#', $this->_config['save_path'], $matches)) + elseif (preg_match('#(?:(?:tcp|tls)://)?([^:?]+)(?:\:(\d+))?(?<options>\?.+)?#', $this->_config['save_path'], $matches)) { $save_path = array( 'host' => $matches[1], |