Add django FileRsponse as a wrapper

This commit is contained in:
Joe Farebrother
2025-03-20 10:37:58 +00:00
parent b2acfbcf87
commit 2c74ddb853

View File

@@ -36,6 +36,9 @@ class FileWrapperCall extends DataFlow::CallCfgNode {
or
wrapped = this.getArg(0) and
this = API::moduleImport("os").getMember("fdopen").getACall()
or
wrapped = this.getArg(0) and
this = API::moduleImport("django").getMember("http").getMember("FileResponse").getACall()
}
/** Gets the file that this call wraps. */