mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
update sink
This commit is contained in:
@@ -14,10 +14,8 @@ abstract class RegexInjectionSanitizer extends DataFlow::ExprNode { }
|
||||
/** A method call that takes a regular expression as an argument. */
|
||||
private class DefaultRegexInjectionSink extends RegexInjectionSink {
|
||||
DefaultRegexInjectionSink() {
|
||||
exists(string kind |
|
||||
kind.matches(["regex-use[]", "regex-use[f1]", "regex-use[f-1]", "regex-use[-1]", "regex-use"]) and
|
||||
sinkNode(this, kind)
|
||||
)
|
||||
// we only select sinks where there is direct regex creation, not regex uses
|
||||
sinkNode(this, ["regex-use[]", "regex-use[f1]", "regex-use[f-1]", "regex-use[-1]", "regex-use"])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user