Update java/ql/src/Security/CWE/CWE-652/XQueryInjectionLib.qll

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
haby0
2021-01-25 19:15:59 +08:00
committed by GitHub
parent 0b326aae20
commit 14a23eed4f

View File

@@ -14,8 +14,8 @@ class XQueryParserCall extends MethodAccess {
m.hasName("prepareExpression")
)
}
// return the first parameter of the `bindString` method and use it as a sink
Expr getSink() { result = this.getArgument(0) }
/** Returns the first parameter of the `bindString` method. */
Expr getInput() { result = this.getArgument(0) }
}
/** A call to `XQDynamicContext.bindString`. */