mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Merge pull request #2161 from RasmusWL/python-fix-cookieset-tostring
Python: Fix toString for CookieSet classes
This commit is contained in:
@@ -44,7 +44,7 @@ class BottleCookieSet extends CookieSet, CallNode {
|
||||
any(BottleResponse r).taints(this.getFunction().(AttrNode).getObject("set_cookie"))
|
||||
}
|
||||
|
||||
override string toString() { result = this.(CallNode).toString() }
|
||||
override string toString() { result = CallNode.super.toString() }
|
||||
|
||||
override ControlFlowNode getKey() { result = this.getArg(0) }
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ class DjangoCookieSet extends CookieSet, CallNode {
|
||||
any(DjangoResponse r).taints(this.getFunction().(AttrNode).getObject("set_cookie"))
|
||||
}
|
||||
|
||||
override string toString() { result = this.(CallNode).toString() }
|
||||
override string toString() { result = CallNode.super.toString() }
|
||||
|
||||
override ControlFlowNode getKey() { result = this.getArg(0) }
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ class FlaskCookieSet extends CookieSet, CallNode {
|
||||
this.getFunction().(AttrNode).getObject("set_cookie").refersTo(_, theFlaskReponseClass(), _)
|
||||
}
|
||||
|
||||
override string toString() { result = this.(CallNode).toString() }
|
||||
override string toString() { result = CallNode.super.toString() }
|
||||
|
||||
override ControlFlowNode getKey() { result = this.getArg(0) }
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ class PyramidCookieSet extends CookieSet, CallNode {
|
||||
)
|
||||
}
|
||||
|
||||
override string toString() { result = this.(CallNode).toString() }
|
||||
override string toString() { result = CallNode.super.toString() }
|
||||
|
||||
override ControlFlowNode getKey() { result = this.getArg(0) }
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ class TornadoCookieSet extends CookieSet, CallNode {
|
||||
)
|
||||
}
|
||||
|
||||
override string toString() { result = this.(CallNode).toString() }
|
||||
override string toString() { result = CallNode.super.toString() }
|
||||
|
||||
override ControlFlowNode getKey() { result = this.getArg(0) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user