-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Labels
bugSomething isn't workingSomething isn't working
Description
If you have a password like: hd:,8_zt@}3C>]#=dHYadKb=
The special characters will break URL encoding like so:
sequin ** (Ecto.InvalidURLError) invalid url
postgres://postgres:hd:,8_zt@}3C>]#=dHYadKb=@postgres-db.abcdefg12345.us-east-1.rds.amazonaws.com
Line 124 in 46ce4e1
| "postgres://#{username}:#{password}@#{hostname}:#{port}/#{database}" |
The fix is quite simple and I have tested the code myself.
encoded_password = URI.encode_www_form(password)
"postgres://#{username}:#{encoded_password}@#{hostname}:#{port}/#{database}"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working