Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
rawurlencode host, password & username
Browse files Browse the repository at this point in the history
  • Loading branch information
eeemarv committed Apr 18, 2019
1 parent 946c384 commit 5daf79b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DependencyInjection/SwiftmailerTransportFactory.php
Expand Up @@ -104,13 +104,13 @@ public static function resolveOptions(array $options)
$options['transport'] = $parts['scheme'];
}
if (isset($parts['user'])) {
$options['username'] = urldecode($parts['user']);
$options['username'] = rawurldecode($parts['user']);
}
if (isset($parts['pass'])) {
$options['password'] = urldecode($parts['pass']);
$options['password'] = rawurldecode($parts['pass']);
}
if (isset($parts['host'])) {
$options['host'] = $parts['host'];
$options['host'] = rawurldecode($parts['host']);
}
if (isset($parts['port'])) {
$options['port'] = $parts['port'];
Expand Down

0 comments on commit 5daf79b

Please sign in to comment.