Skip to content

Commit 38977dc

Browse files
authored
fixed syntax (#791)
Javadoc only update so allowing unsigned commit.
1 parent 3ad6fbc commit 38977dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
* attempts, your controller code would look something like:
3232
*
3333
* <PRE>
34-
* ValidationErrorList() errorList = new ValidationErrorList();.
35-
* String name = getValidInput("Name", form.getName(), "SomeESAPIRegExName1", 255, false, errorList);
36-
* String address = getValidInput("Address", form.getAddress(), "SomeESAPIRegExName2", 255, false, errorList);
34+
* ValidationErrorList() errorList = new ValidationErrorList();
35+
* String name = ESAPI.validator().getValidInput("Name", form.getName(), "SomeESAPIRegExName1", 255, false, errorList);
36+
* String address = ESAPI.validator().getValidInput("Address", form.getAddress(), "SomeESAPIRegExName2", 255, false, errorList);
3737
* Integer weight = getValidInteger("Weight", form.getWeight(), 1, 1000000000, false, errorList);
3838
* Integer sortOrder = getValidInteger("Sort Order", form.getSortOrder(), -100000, +100000, false, errorList);
3939
* request.setAttribute( "ERROR_LIST", errorList );

0 commit comments

Comments
 (0)