mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Refactoring Next.js parameter
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
@@ -54,12 +54,7 @@ module NextJS {
|
||||
.getParameter(0)
|
||||
.getAPropertyRead("params")
|
||||
or
|
||||
exists(DataFlow::ParameterNode params |
|
||||
params = getServerSidePropsFunction(_).getParameter(0)
|
||||
|
|
||||
this = params.getAPropertyRead("params") or
|
||||
this = params.getAPropertyRead("query")
|
||||
)
|
||||
this = getServerSidePropsFunction(_).getParameter(0).getAPropertyRead(["params", "query"])
|
||||
or
|
||||
this = nextRouter().getAPropertyRead("query")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user