mirror of
https://github.com/acaloiaro/neoq
synced 2026-07-21 10:12:18 +00:00
URL encode password
This commit is contained in:
parent
8e9836e7fe
commit
b2aa3892c3
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"embed"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/url"
|
||||
"os"
|
||||
"sync"
|
||||
"time"
|
||||
|
|
@ -344,7 +345,7 @@ func (p *PgBackend) initializeDB() (err error) {
|
|||
|
||||
pqConnectionString := fmt.Sprintf("postgres://%s:%s@%s/%s?sslmode=%s&x-migrations-table=neoq_schema_migrations",
|
||||
pgxCfg.User,
|
||||
pgxCfg.Password,
|
||||
url.QueryEscape(pgxCfg.Password),
|
||||
pgxCfg.Host,
|
||||
pgxCfg.Database,
|
||||
sslMode)
|
||||
|
|
|
|||
Loading…
Reference in a new issue