2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

fix: PostgreSQL 16 不讲武德,来骗,来偷袭

This commit is contained in:
耗子
2023-09-26 01:14:44 +08:00
parent 9bd9833ca9
commit 69cf5dcb65

View File

@@ -269,7 +269,7 @@ func (c *Postgresql16Controller) DatabaseList(ctx http.Context) http.Response {
var databaseList []database
for _, db := range databases {
parts := strings.Split(db, "|")
if len(parts) != 8 || len(strings.TrimSpace(parts[0])) == 0 {
if len(parts) != 9 || len(strings.TrimSpace(parts[0])) == 0 {
continue
}
@@ -499,7 +499,7 @@ func (c *Postgresql16Controller) UserList(ctx http.Context) http.Response {
var userList []user
for _, u := range users {
userInfo := strings.Split(u, "|")
if len(userInfo) != 3 {
if len(userInfo) != 2 {
continue
}