Merge pull request #2161 from RasmusWL/python-fix-cookieset-tostring

Python: Fix toString for CookieSet classes
This commit is contained in:
Taus
2019-10-22 16:48:31 +02:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -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) }

View File

@@ -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) }

View File

@@ -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) }

View File

@@ -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) }

View File

@@ -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) }