We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70331c0 commit 36889f6Copy full SHA for 36889f6
javascript/ql/lib/semmle/javascript/frameworks/Express.qll
@@ -777,12 +777,12 @@ module Express {
777
/**
778
* Holds if `e` is an HTTP request object.
779
*/
780
- predicate isRequest(DataFlow::Node e) { any(RouteHandler rh).getARequestNode() = e }
+ predicate isRequest(DataFlow::Node e) { any(RequestSource src).ref().flowsTo(e) }
781
782
783
* Holds if `e` is an HTTP response object.
784
785
- predicate isResponse(DataFlow::Node e) { any(RouteHandler rh).getAResponseNode() = e }
+ predicate isResponse(DataFlow::Node e) { any(ResponseSource src).ref().flowsTo(e) }
786
787
788
* An access to the HTTP request body.
0 commit comments