Skip to content

Commit da58944

Browse files
Made steps collapsible for better readability
1 parent c0febd4 commit da58944

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ that's the version that will be used by default.
4848

4949
# Quickstart - Maven Example
5050
### Step 1: Add the required maven dependencies.
51+
<details>
52+
5153
```xml
5254
<dependency>
5355
<groupId>org.owasp.esapi</groupId>
@@ -63,11 +65,20 @@ that's the version that will be used by default.
6365
<scope>provided</scope>
6466
</dependency>
6567
```
68+
69+
</details>
70+
6671
### Step 2: Create 2 properties file namely: ESAPI.properties and validation.properties and add them to your classpath. You can refer to below for boilerplate configurations.
72+
<details>
73+
6774
[ESAPI.properties](https://github.com/ESAPI/esapi-java-legacy/blob/develop/configuration/esapi/ESAPI.properties) <br/>
6875
[validation.properties](https://github.com/ESAPI/esapi-java-legacy/blob/develop/configuration/esapi/validation.properties)
6976

77+
</details>
78+
7079
### Step 3: Let's say, you want to remediate log injection vulnerabilities. Below is an example to achieve it.
80+
<details>
81+
7182
```code
7283
import org.owasp.esapi.ESAPI;
7384
import org.owasp.esapi.Logger;
@@ -81,6 +92,8 @@ public class Example {
8192
```
8293
For more examples, please visit [https://owasp.org/www-project-enterprise-security-api/](https://owasp.org/www-project-enterprise-security-api/).
8394

95+
</details>
96+
8497
# A word about ESAPI vulnerabilities
8598
A summary of all the vulnerabilities that we have written about in either the
8699
ESAPI Security Bulletins or in the GitHub Security Advisories may be found

0 commit comments

Comments
 (0)