This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Difference between revisions of "OWASP Java Encoder Project"
From OWASP
m |
|||
Line 285: | Line 285: | ||
# Filter out the accent grave from any user input | # Filter out the accent grave from any user input | ||
# Clean up grave accents when using an innerHTML copy | # Clean up grave accents when using an innerHTML copy | ||
+ | |||
+ | == OWASP Java Encoder Library Related Changes == | ||
+ | |||
+ | The OWASP Java Encoder Library at its core is intended to be a XSS safe _encoding_ library. The grave accent is a legitimate and frequently used character, that cannot be encoded to avoid this bug in unpatched versions of IE. With enough user feedback, we may update the library to include one of the following options: (1) alternate, drop-in build that filters grave accents, with unchanged API, (2) new filtering methods. | ||
= Encoding and Template Literals = | = Encoding and Template Literals = | ||
Line 298: | Line 302: | ||
`Hello ${"<%= Encode.forJavaScript(user) $>"}, here is your total ${total}` | `Hello ${"<%= Encode.forJavaScript(user) $>"}, here is your total ${total}` | ||
− | |||
− | |||
− | |||
− | |||
= Roadmap = | = Roadmap = |