зеркало из https://github.com/github/codeql.git
JS: Fix isResponse/isRequest
This commit is contained in:
Родитель
70331c0ea4
Коммит
36889f6d72
|
@ -777,12 +777,12 @@ module Express {
|
|||
/**
|
||||
* Holds if `e` is an HTTP request object.
|
||||
*/
|
||||
predicate isRequest(DataFlow::Node e) { any(RouteHandler rh).getARequestNode() = e }
|
||||
predicate isRequest(DataFlow::Node e) { any(RequestSource src).ref().flowsTo(e) }
|
||||
|
||||
/**
|
||||
* Holds if `e` is an HTTP response object.
|
||||
*/
|
||||
predicate isResponse(DataFlow::Node e) { any(RouteHandler rh).getAResponseNode() = e }
|
||||
predicate isResponse(DataFlow::Node e) { any(ResponseSource src).ref().flowsTo(e) }
|
||||
|
||||
/**
|
||||
* An access to the HTTP request body.
|
||||
|
|
Загрузка…
Ссылка в новой задаче