Skip to content

Commit 4463b30

Browse files
committed
Python: Update pyramid library to use correct response class
Tested with pyramid 1.10.4 and python 3.6.8
1 parent 66a0e15 commit 4463b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PyramidCookieSet extends CookieSet, CallNode {
3535
PyramidCookieSet() {
3636
exists(ControlFlowNode f |
3737
f = this.getFunction().(AttrNode).getObject("set_cookie") and
38-
f.pointsTo().getClass() = Value::named("pyramid.Response")
38+
f.pointsTo().getClass() = Value::named("pyramid.response.Response")
3939
)
4040
}
4141

0 commit comments

Comments
 (0)