mirror of
https://github.com/golang/go
synced 2024-11-18 10:34:51 -07:00
94e9a5e19b
Ampersand and equal are not dangerous in a JS/JSString context but they might cause issues if interpolated in HTML attributes. This change makes it harder to introduce XSS by misusing escaping. Thanks to t1ddl3r <t1ddl3r@gmail.com> for reporting this common misuse scenario. Fixes #35665 Change-Id: Ice6416477bba4cb2ba2fe2cfdc20e027957255c0 Reviewed-on: https://go-review.googlesource.com/c/go/+/207637 Reviewed-by: Filippo Valsorda <filippo@golang.org> Reviewed-by: Mike Samuel <mikesamuel@gmail.com> Reviewed-by: Andrew Bonventre <andybons@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> |
||
---|---|---|
.. | ||
attr_string.go | ||
attr.go | ||
clone_test.go | ||
content_test.go | ||
content.go | ||
context.go | ||
css_test.go | ||
css.go | ||
delim_string.go | ||
doc.go | ||
element_string.go | ||
error.go | ||
escape_test.go | ||
escape.go | ||
example_test.go | ||
examplefiles_test.go | ||
html_test.go | ||
html.go | ||
js_test.go | ||
js.go | ||
jsctx_string.go | ||
state_string.go | ||
template_test.go | ||
template.go | ||
transition_test.go | ||
transition.go | ||
url_test.go | ||
url.go | ||
urlpart_string.go |