mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Fix panic when parsing empty pgsql host (#28708)
Regression of #27723 Fix #28705
This commit is contained in:
1 parent
e522e774ca
commit
e75e9a0e7e
2 files changed
+5
-1
No files matched your search
@@ -65,6 +65,10 @@ func Test_getPostgreSQLConnectionString(t *testing.T) {
|
||||
SSLMode string
|
||||
Output string
|
||||
}{
|
||||
{
|
||||
Host: "", // empty means default
|
||||
Output: "postgres://:@127.0.0.1:5432?sslmode=",
|
||||
},
|
||||
{
|
||||
Host: "/tmp/pg.sock",
|
||||
User: "testuser",
|
||||
|
||||
Reference in new issue
Block a user