Skip to content

Commit 5b410c2

Browse files
committed
Fix Javadoc for the getValid method.
It referenced an obsolete ESAPI property that was renamed to 'Validator.HtmlValidationAction'.
1 parent 9e99897 commit 5b410c2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main/java/org/owasp/esapi/ValidationRule.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ public interface ValidationRule {
2020
* the value to be parsed
2121
* @return a validated value
2222
* @throws ValidationException
23-
* if any validation rules fail, <i>except</i> if the
23+
* Thrown if any validation rules fail, <i>except</i> when the
2424
* <b>{@code ESAPI.properties}></b> property
25-
* "Validator.ValidationRule.getValid.ignore509Fix" is set to
26-
* {@code true}, which is the default behavior for ESAPI 2.x
25+
* "Validator.HtmlValidationAction" is set to
26+
* {@code clean}. The default <b>{@code ESAPI.properties}></b> property file
27+
* has "Validator.HtmlValidationAction" is set to {@code throw}, which results
28+
* in a {@code ValidationException} being thrown if any of the validation rules
29+
* fail.
30+
*
2731
* releases. See ESAPI GitHub Issues
2832
* <a href="https://github.com/ESAPI/esapi-java-legacy/issues/509}>509</a>
2933
* and <a href="https://github.com/ESAPI/esapi-java-legacy/issues/521">521</a>

0 commit comments

Comments
 (0)