Update handle_shares.go

This commit is contained in:
Sora 2026-01-20 10:25:46 +08:00
parent 1ddc8ccbf4
commit 301a3e2e03

View File

@ -183,9 +183,11 @@ func (pub *Router) handleAPlayer(w http.ResponseWriter, r *http.Request) {
data := map[string]interface{}{
"ShareDescription": description,
"ShareInfo": template.JS(shareInfoJSON),
"APlayerScript": template.JS(scriptContent),
"BaseURL": baseURL,
// #nosec G203 -- shareInfoJSON is generated by json.Marshal from server data, not user input
"ShareInfo": template.JS(shareInfoJSON),
// #nosec G203 -- scriptContent is from embedded resource file, not user input
"APlayerScript": template.JS(scriptContent),
"BaseURL": baseURL,
}
// Render template