mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
✅ gosec
This commit is contained in:
1 parent
16b0bab2ab
commit
b6dde7d324
8 files changed
+13
-14
No files matched your search
+1
-2
@@ -43,6 +43,5 @@ func (s Server) Marshal() template.JS {
|
||||
tag, _ := json.Marshal(s.Tag)
|
||||
note, _ := json.Marshal(s.Note)
|
||||
secret, _ := json.Marshal(s.Secret)
|
||||
return template.JS(fmt.Sprintf(`{"ID":%d,"Name":%s,"Secret":%s,"DisplayIndex":%d,"Tag":%s,"Note":%s}`,
|
||||
s.ID, name, secret, s.DisplayIndex, tag, note))
|
||||
return template.JS(fmt.Sprintf(`{"ID":%d,"Name":%s,"Secret":%s,"DisplayIndex":%d,"Tag":%s,"Note":%s}`, s.ID, name, secret, s.DisplayIndex, tag, note)) // #nosec
|
||||
}
|
||||
Reference in new issue
Block a user