Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Javadoc code example in ValidationErrorList #788

Open
kwwall opened this issue Jun 17, 2023 · 0 comments
Open

Fix Javadoc code example in ValidationErrorList #788

kwwall opened this issue Jun 17, 2023 · 0 comments

Comments

@kwwall
Copy link
Contributor

kwwall commented Jun 17, 2023

The code example in the class Javadoc section for org.owasp.esapi.ValidationErrorList is incorrect.

It currently looks like:

 ValidationErrorList() errorList = new ValidationErrorList();.
 String name  = getValidInput("Name", form.getName(), "SomeESAPIRegExName1", 255, false, errorList);
 String address = getValidInput("Address", form.getAddress(), "SomeESAPIRegExName2", 255, false, errorList);
 Integer weight = getValidInteger("Weight", form.getWeight(), 1, 1000000000, false, errorList);
 Integer sortOrder = getValidInteger("Sort Order", form.getSortOrder(), -100000, +100000, false, errorList);
 request.setAttribute( "ERROR_LIST", errorList );

But there's an extraneous period at the end of the first line, just after the semicolon, and the the 2 references to getValidInput method calls should be probably preceded by "ESAPI.validator().".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant