tag | d4c668e59e7e54173b61c3dae347195a8499a5b1 | |
---|---|---|
tagger | Xin Li <delphij@google.com> | Wed Apr 24 19:37:47 2024 -0700 |
object | 29a980cccb7fb4a3447f85a61d82d909971f5cd0 |
aml_hef_341613000 (11465779,com.google.android.healthfitness)
commit | 29a980cccb7fb4a3447f85a61d82d909971f5cd0 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Jul 08 04:29:52 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Jul 08 04:29:52 2023 +0000 |
tree | dffefd0374f7ed3358f3a252c2e2aafba60b76be | |
parent | b6d84190600a4956882dbbd7d09fa49c5cad03ce [diff] | |
parent | 91a73e141cfefdfe3a234d0b39782d15e4b069e3 [diff] |
Snap for 10460766 from 91a73e141cfefdfe3a234d0b39782d15e4b069e3 to mainline-healthfitness-release Change-Id: I0d14bb352a5b9a4ef1e67149a915b08d148517e8
Contextual Output Encoding is a computer programming technique necessary to stop Cross-Site Scripting. This project is a Java 1.5+ simple-to-use drop-in high-performance encoder class with little baggage.
For more detailed documentation on the OWASP Javca Encoder please visit https://owasp.org/www-project-java-encoder/.
You can download a JAR from Maven Central.
JSP tags and EL functions are available in the encoder-jsp, also available in Central.
The jars are also available in Maven:
<dependency> <groupId>org.owasp.encoder</groupId> <artifactId>encoder</artifactId> <version>1.2.3</version> </dependency> <dependency> <groupId>org.owasp.encoder</groupId> <artifactId>encoder-jsp</artifactId> <version>1.2.3</version> </dependency>
The OWASP Java Encoder library is intended for quick contextual encoding with very little overhead, either in performance or usage. To get started, simply add the encoder-1.2.3.jar, import org.owasp.encoder.Encode and start using.
Example usage:
PrintWriter out = ....; out.println("<textarea>"+Encode.forHtml(userData)+"</textarea>");
Please look at the javadoc for Encode to see the variety of contexts for which you can encode.
Happy Encoding!
The team is happy to announce that version 1.2.3 has been released!
The team is happy to announce that version 1.2.2 has been released!
The team is happy to announce that version 1.2.1 has been released!
OWASP Java Encoder has been moved to GitHub. Version 1.2 was also released!
Please visit https://www.owasp.org/index.php/OWASP_Java_Encoder_Project#tab=Use_the_Java_Encoder_Project to see detailed documentation and examples on each API use!
We're happy to announce that version 1.1.1 has been released. Along with a important bug fix, we added ESAPI integration to replace the legacy ESAPI encoders with the OWASP Java Encoder.
We're happy to announce that version 1.1 has been released. Along with a few minor encoding enhancements, we improved performance, and added a JSP tag and function library.