Skip to content

Commit

Permalink
Merge branch '5.4' into 6.0
Browse files Browse the repository at this point in the history
* 5.4:
  [HttpFoundation] Always return strings from accept headers
  decode URL-encoded characters in DSN's usernames/passwords
  [Security/Http] cs fixes
  • Loading branch information
xabbuh committed Sep 11, 2022
2 parents cafbdbf + def93f2 commit 0a17611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Transport/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ public static function fromDsn(string $dsn, array $options = [], AmqpFactory $am
self::validateOptions($amqpOptions);

if (isset($parsedUrl['user'])) {
$amqpOptions['login'] = $parsedUrl['user'];
$amqpOptions['login'] = urldecode($parsedUrl['user']);
}

if (isset($parsedUrl['pass'])) {
$amqpOptions['password'] = $parsedUrl['pass'];
$amqpOptions['password'] = urldecode($parsedUrl['pass']);
}

if (!isset($amqpOptions['queues'])) {
Expand Down

0 comments on commit 0a17611

Please sign in to comment.