Skip to content

Commit a19569c

Browse files
authored
Merge pull request #2161 from RasmusWL/python-fix-cookieset-tostring
Python: Fix toString for CookieSet classes
2 parents 25e3258 + 9cf0e24 commit a19569c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

python/ql/src/semmle/python/web/bottle/Response.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class BottleCookieSet extends CookieSet, CallNode {
4444
any(BottleResponse r).taints(this.getFunction().(AttrNode).getObject("set_cookie"))
4545
}
4646

47-
override string toString() { result = this.(CallNode).toString() }
47+
override string toString() { result = CallNode.super.toString() }
4848

4949
override ControlFlowNode getKey() { result = this.getArg(0) }
5050

python/ql/src/semmle/python/web/django/Response.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class DjangoCookieSet extends CookieSet, CallNode {
7070
any(DjangoResponse r).taints(this.getFunction().(AttrNode).getObject("set_cookie"))
7171
}
7272

73-
override string toString() { result = this.(CallNode).toString() }
73+
override string toString() { result = CallNode.super.toString() }
7474

7575
override ControlFlowNode getKey() { result = this.getArg(0) }
7676

python/ql/src/semmle/python/web/flask/General.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class FlaskCookieSet extends CookieSet, CallNode {
122122
this.getFunction().(AttrNode).getObject("set_cookie").refersTo(_, theFlaskReponseClass(), _)
123123
}
124124

125-
override string toString() { result = this.(CallNode).toString() }
125+
override string toString() { result = CallNode.super.toString() }
126126

127127
override ControlFlowNode getKey() { result = this.getArg(0) }
128128

python/ql/src/semmle/python/web/pyramid/Response.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class PyramidCookieSet extends CookieSet, CallNode {
3939
)
4040
}
4141

42-
override string toString() { result = this.(CallNode).toString() }
42+
override string toString() { result = CallNode.super.toString() }
4343

4444
override ControlFlowNode getKey() { result = this.getArg(0) }
4545

python/ql/src/semmle/python/web/tornado/Tornado.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class TornadoCookieSet extends CookieSet, CallNode {
4545
)
4646
}
4747

48-
override string toString() { result = this.(CallNode).toString() }
48+
override string toString() { result = CallNode.super.toString() }
4949

5050
override ControlFlowNode getKey() { result = this.getArg(0) }
5151

0 commit comments

Comments
 (0)