mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Update RegExp handling and add test case
Co-authored-by: erik-krogh <erik-krogh@github.com>
This commit is contained in:
@@ -40,7 +40,7 @@ module CleartextLogging {
|
||||
exists(this.getRawReplacement().getStringValue()) and
|
||||
exists(DataFlow::RegExpCreationNode regexpObj |
|
||||
this.(StringReplaceCall).getRegExp() = regexpObj and
|
||||
regexpObj.getRoot() = any(RegExpDot term)
|
||||
regexpObj.getRoot() = any(RegExpDot term).getRootTerm()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user