Skip to content

Commit 14bb10a

Browse files
committed
Python: Use LocalSourceNode for TornadoRouteRegex
1 parent f9a29cb commit 14bb10a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/frameworks/Tornado.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ private module Tornado {
476476

477477
TornadoRouteRegex() {
478478
this instanceof StrConst and
479-
DataFlow::localFlow(DataFlow::exprNode(this), setup.getUrlPatternArg())
479+
DataFlow::exprNode(this).(DataFlow::LocalSourceNode).flowsTo(setup.getUrlPatternArg())
480480
}
481481

482482
TornadoRouteSetup getRouteSetup() { result = setup }

0 commit comments

Comments
 (0)