🎨 Escape marketplace package author name (#17457)

This commit is contained in:
Jeffrey Chen
2026-04-11 18:20:49 +08:00
committed by GitHub
parent 31eb761ef3
commit 9ba3a9a65d

View File

@@ -135,6 +135,7 @@ func sanitizePackageDisplayStrings(pkg *Package) {
if pkg == nil {
return
}
pkg.Author = html.EscapeString(pkg.Author)
for k, v := range pkg.DisplayName {
pkg.DisplayName[k] = html.EscapeString(v)
}