mirror of
https://github.com/gofiber/storage.git
synced 2025-10-03 15:56:37 +08:00
Url Escape the password provided to postgres
This commit is contained in:
@@ -55,7 +55,7 @@ func New(config ...Config) *Storage {
|
||||
dsn += url.QueryEscape(cfg.Username)
|
||||
}
|
||||
if cfg.Password != "" {
|
||||
dsn += ":" + cfg.Password
|
||||
dsn += ":" + url.QueryEscape(cfg.Password)
|
||||
}
|
||||
if cfg.Username != "" || cfg.Password != "" {
|
||||
dsn += "@"
|
||||
|
Reference in New Issue
Block a user