mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Update javascript/ql/lib/semmle/javascript/frameworks/Next.qll
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
@@ -283,7 +283,7 @@ module NextJS {
|
||||
NextAppRouteHandler() {
|
||||
exists(Module mod |
|
||||
mod.getFile().getParentContainer() = apiFolder() or
|
||||
mod.getFile().getBaseName() = ["middleware.ts", "middleware.js"]
|
||||
mod.getFile().getStem() = "middleware"
|
||||
|
|
||||
this =
|
||||
mod.getAnExportedValue([any(Http::RequestMethodName m), "middleware"]).getAFunctionValue() and
|
||||
|
||||
Reference in New Issue
Block a user