mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
change Source to ConstantString, it seems that we have some duplicate results now, ConstantString is suggested as a better alternative for finding constant sources
This commit is contained in:
@@ -18,7 +18,7 @@ class JWTDecodeConfig extends TaintTracking::Configuration {
|
||||
JWTDecodeConfig() { this = "JWTConfig" }
|
||||
|
||||
override predicate isSource(DataFlow::Node source) {
|
||||
source.asExpr() instanceof StringLiteral or source.asExpr() instanceof TemplateLiteral
|
||||
source.asExpr() instanceof ConstantString
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
|
||||
Reference in New Issue
Block a user