mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Avoid using Str_ internal class
This commit is contained in:
@@ -175,9 +175,12 @@ private module PrivateDjango {
|
||||
}
|
||||
|
||||
override predicate isSameSite() {
|
||||
this.(DataFlow::CallCfgNode).getArgByName("samesite").asExpr().(Str_).getS() in [
|
||||
"Strict", "Lax"
|
||||
]
|
||||
exists(StrConst str |
|
||||
str.getText() in ["Strict", "Lax"] and
|
||||
DataFlow::exprNode(str)
|
||||
.(DataFlow::LocalSourceNode)
|
||||
.flowsTo(this.(DataFlow::CallCfgNode).getArgByName("samesite"))
|
||||
)
|
||||
}
|
||||
|
||||
override DataFlow::Node getHeaderArg() { none() }
|
||||
|
||||
@@ -121,9 +121,12 @@ module ExperimentalFlask {
|
||||
}
|
||||
|
||||
override predicate isSameSite() {
|
||||
this.(DataFlow::CallCfgNode).getArgByName("samesite").asExpr().(Str_).getS() in [
|
||||
"Strict", "Lax"
|
||||
]
|
||||
exists(StrConst str |
|
||||
str.getText() in ["Strict", "Lax"] and
|
||||
DataFlow::exprNode(str)
|
||||
.(DataFlow::LocalSourceNode)
|
||||
.flowsTo(this.(DataFlow::CallCfgNode).getArgByName("samesite"))
|
||||
)
|
||||
}
|
||||
|
||||
override DataFlow::Node getHeaderArg() { none() }
|
||||
|
||||
Reference in New Issue
Block a user