mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Cleanup according to review comments.
This commit is contained in:
@@ -27,7 +27,7 @@ and validate the expressions before evaluation.</p>
|
||||
</example>
|
||||
|
||||
<references>
|
||||
<li>OGNL library: <a href="https://github.com/jkuhnert/ognl/">OGNL library</a>.</li>
|
||||
<li><a href="https://github.com/jkuhnert/ognl/">OGNL library</a>.</li>
|
||||
<li>Struts security: <a href="https://struts.apache.org/security/#proactively-protect-from-ognl-expression-injections-attacks-if-easily-applicable">Proactively protect from OGNL Expression Injections attacks</a>.</li>
|
||||
</references>
|
||||
</qhelp>
|
||||
|
||||
@@ -49,7 +49,7 @@ class TypeOgnlUtil extends Class {
|
||||
*/
|
||||
predicate ognlSinkMethod(Method m, int index) {
|
||||
(
|
||||
m.getDeclaringType() instanceof TypeOgnl and index = 0
|
||||
m.getDeclaringType() instanceof TypeOgnl
|
||||
or
|
||||
m.getDeclaringType().getAnAncestor*() instanceof TypeNode
|
||||
) and
|
||||
|
||||
Reference in New Issue
Block a user