symfony / swiftmailer-bundle

Symfony Swiftmailer Bundle
https://symfony.com/swiftmailer-bundle
MIT License
1.56k stars 151 forks source link

SwiftmailerTransportFactory->resolveOptions() #216

Closed tehac closed 4 years ago

tehac commented 6 years ago

Observed behaviour MAILER_URL=smtp://koko%40joko.cz:pass%2F@mailer

Expected behaviour resolveOptions() -> parse_url() does not url decode 'user' & 'pass' $parts = parse_url($options['url']);

Example to fix $options['username'] = urldecode($parts['user']); $options['password'] = urldecode($parts['pass']);