Skip to content

Complete the truncated example in validation.properties - #925

Open
VolodymyrLinuxovich wants to merge 1 commit into
ESAPI:developfrom
VolodymyrLinuxovich:issue-913
Open

VolodymyrLinuxovich wants to merge 1 commit into
ESAPI:developfrom
VolodymyrLinuxovich:issue-913

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown

Closes #913

The comment at the top of validation.properties stopped in the middle of the getValidInput example. This finishes it with the catch block. It also says that setEmail gets the canonical input, and that getValidInput can throw IntrusionException for input that looks like an attack.

The same comment said patterns are prefixed with "Validation." But DefaultSecurityConfiguration looks them up as "Validator." plus the type name, and every pattern in the file uses Validator. So I fixed the prefix in the example. I also fixed a missing parenthesis and "for you needs".

The text was the same in both copies, so I changed configuration/esapi/validation.properties and src/test/resources/esapi/validation.properties. Only comments changed. ValidatorTest still passes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incomplete documentation in validation.properties

1 participant