Skip to content

Commit 7581cba

Browse files
authored
Python: Fix forgotten type tracker
This was the last remaining type tracker that did not use `LocalSourceNode`.
1 parent 38548c9 commit 7581cba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ private module PrivateDjango {
13031303
}
13041304

13051305
/** Gets a reference to the `django.http.response.HttpResponse.write` function. */
1306-
private DataFlow::Node write(
1306+
private DataFlow::LocalSourceNode write(
13071307
django::http::response::HttpResponse::InstanceSource instance, DataFlow::TypeTracker t
13081308
) {
13091309
t.startInAttr("write") and
@@ -1315,7 +1315,7 @@ private module PrivateDjango {
13151315

13161316
/** Gets a reference to the `django.http.response.HttpResponse.write` function. */
13171317
DataFlow::Node write(django::http::response::HttpResponse::InstanceSource instance) {
1318-
result = write(instance, DataFlow::TypeTracker::end())
1318+
write(instance, DataFlow::TypeTracker::end()).flowsTo(result)
13191319
}
13201320

13211321
/**

0 commit comments

Comments
 (0)