From f82d63fe8ef0bcb6fa0d6ea492b504f9ef293852 Mon Sep 17 00:00:00 2001 From: naiba Date: Mon, 18 Apr 2022 20:45:07 +0800 Subject: [PATCH] fix code scan alerts --- .github/workflows/test.yml | 1 + cmd/dashboard/controller/common_page.go | 4 ++-- resource/template/dashboard/login.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7ca1b26..fe055494 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,7 @@ on: - master paths-ignore: - ".github/workflows/agent.yml" + - ".github/workflows/codeql-analysis.yml" - ".github/workflows/test-on-pr.yml" - "README.md" - ".goreleaser.yml" diff --git a/cmd/dashboard/controller/common_page.go b/cmd/dashboard/controller/common_page.go index ca28ffef..9ee61199 100644 --- a/cmd/dashboard/controller/common_page.go +++ b/cmd/dashboard/controller/common_page.go @@ -322,8 +322,8 @@ func (cp *commonPage) terminal(c *gin.Context) { } defer conn.Close() - log.Println("NEZHA>> terminal connected", isAgent, c.Request.URL) - defer log.Println("NEZHA>> terminal disconnected", isAgent, c.Request.URL) + log.Printf("NEZHA>> terminal connected %t %q", isAgent, c.Request.URL) + defer log.Printf("NEZHA>> terminal disconnected %t %q", isAgent, c.Request.URL) if isAgent { terminal.agentConn = conn diff --git a/resource/template/dashboard/login.html b/resource/template/dashboard/login.html index 4a27ef40..dfe5c795 100644 --- a/resource/template/dashboard/login.html +++ b/resource/template/dashboard/login.html @@ -11,7 +11,7 @@ 登录
- 没有账号? 注册 + 没有账号? 注册