Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5b470e

Browse files
Alvaro Muñozshati-patel
andauthored
Update java/ql/src/Security/CWE/CWE-094/InsecureBeanValidation.qhelp
Co-authored-by: Shati Patel <[email protected]>
1 parent 9785013 commit d5b470e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/ql/src/Security/CWE/CWE-094/InsecureBeanValidation.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ untrusted) bean properties flow into the custom error message.</p>
1414
<p>There are different approaches to remediate the issue:</p>
1515
<ul>
1616
<li>Do not include validated bean properties in the custom error message.</li>
17-
<li>Use parameterized messages instead of string concatenation. E.g:
17+
<li>Use parameterized messages instead of string concatenation. For example:
1818
<pre>
1919
HibernateConstraintValidatorContext context = constraintValidatorContext.unwrap( HibernateConstraintValidatorContext.class );
2020
context.addMessageParameter( "foo", "bar" );

0 commit comments

Comments
 (0)