Skip to content

Commit 930ed0a

Browse files
committed
Python: Minor django fixup
1 parent 226425e commit 930ed0a

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
@@ -1350,9 +1350,9 @@ private module PrivateDjango {
13501350
* See https://docs.djangoproject.com/en/3.1/ref/request-response/#django.http.HttpResponse.write
13511351
*/
13521352
class HttpResponseWriteCall extends HTTP::Server::HttpResponse::Range, DataFlow::CallCfgNode {
1353-
HTTP::Server::HttpResponse::Range instance;
1353+
django::http::response::HttpResponse::InstanceSource instance;
13541354

1355-
HttpResponseWriteCall() { node.getFunction() = write(instance).asCfgNode() }
1355+
HttpResponseWriteCall() { this.getFunction() = write(instance) }
13561356

13571357
override DataFlow::Node getBody() {
13581358
result in [this.getArg(0), this.getArgByName("content")]

0 commit comments

Comments
 (0)