Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
The user info part of an URI should be decoded #3716
Steps to reproduce or a small repository showing the problem:
default: type: postgres host: localhost port: 5432 database: foo_bar username: postgres password: Foo@Bar@ # Note the "at" signs!
But if I use an
default: type: postgres url: 'postgres://postgres:Foo%40Bar%40@localhost:5432/foo_bar'
The password sent to the database is
That's a wrong behavior : the user info in an URI can contain special characters that are URL-encoded, and so they must be decoded before using them to connect to the database.