Skip to content

Commit bee21e3

Browse files
committed
fix(be): postgres password issue
1 parent d44a3f6 commit bee21e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,14 @@ func (d *DbConfig) GetConnectionString(includeDbName bool) (connectionString str
276276
connectionString = fmt.Sprintf(
277277
"postgres://%s:%s@%s/%s",
278278
d.Username,
279-
d.Password,
279+
url.QueryEscape(d.Password),
280280
d.Hostname,
281281
d.DbName)
282282
} else {
283283
connectionString = fmt.Sprintf(
284284
"postgres://%s:%s@%s",
285285
d.Username,
286-
d.Password,
286+
url.QueryEscape(d.Password),
287287
d.Hostname)
288288
}
289289
connectionString += mapToQueryString(d.Options)

0 commit comments

Comments
 (0)