bug #29543 [Cache] Don't erase processed redis dsn (chalasr)
This PR was merged into the 4.2 branch.
Discussion
----------
[Cache] Don't erase processed redis dsn
| Q | A
| ------------- | ---
| Branch? | 4.2
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Commits
-------
7b2a337f7c
[Cache] Fix dsn parsing
This commit is contained in:
commit
fae1854899
@ -96,7 +96,7 @@ trait RedisTrait
|
||||
return 'file:'.($m[1] ?? '');
|
||||
}, $dsn);
|
||||
|
||||
if (false === $params = parse_url($dsn)) {
|
||||
if (false === $params = parse_url($params)) {
|
||||
throw new InvalidArgumentException(sprintf('Invalid Redis DSN: %s', $dsn));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user