mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
change-notes
This commit is contained in:
@@ -36,6 +36,9 @@ module FastApi {
|
||||
private class AddMiddlewareCall extends DataFlow::CallCfgNode {
|
||||
AddMiddlewareCall() { this = App::instance().getMember("add_middleware").getACall() }
|
||||
|
||||
/**
|
||||
* Gets the string corresponding to the middleware
|
||||
*/
|
||||
string middleware_name() { result = this.getArg(0).asExpr().(Name).toString() }
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,9 @@ module Starlette {
|
||||
this = [App::instance().getMember("add_middleware").getACall(), Middleware::instance()]
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string corresponding to the middleware
|
||||
*/
|
||||
string middleware_name() { result = this.getArg(0).asExpr().(Name).toString() }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user