mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
Update handle_shares.go
This commit is contained in:
parent
1ddc8ccbf4
commit
301a3e2e03
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user