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,7 +183,9 @@ func (pub *Router) handleAPlayer(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
"ShareDescription": description,
|
"ShareDescription": description,
|
||||||
|
// #nosec G203 -- shareInfoJSON is generated by json.Marshal from server data, not user input
|
||||||
"ShareInfo": template.JS(shareInfoJSON),
|
"ShareInfo": template.JS(shareInfoJSON),
|
||||||
|
// #nosec G203 -- scriptContent is from embedded resource file, not user input
|
||||||
"APlayerScript": template.JS(scriptContent),
|
"APlayerScript": template.JS(scriptContent),
|
||||||
"BaseURL": baseURL,
|
"BaseURL": baseURL,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user