File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
javascript/ql/src/semmle/javascript/frameworks Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -688,8 +688,7 @@ module Express {
688
688
override RouteHandler getRouteHandler ( ) { result = rh }
689
689
690
690
override Expr getNameExpr ( ) {
691
- exists ( DataFlow:: PropWrite write |
692
- getAHeaderSource ( ) .flowsTo ( write .getBase ( ) ) and
691
+ exists ( DataFlow:: PropWrite write | getAHeaderSource ( ) .getAPropertyWrite ( ) = write |
693
692
result = write .getPropertyNameExpr ( )
694
693
)
695
694
}
Original file line number Diff line number Diff line change @@ -283,8 +283,7 @@ module Fastify {
283
283
override RouteHandler getRouteHandler ( ) { result = rh }
284
284
285
285
override Expr getNameExpr ( ) {
286
- exists ( DataFlow:: PropWrite write |
287
- this .getAHeaderSource ( ) .flowsTo ( write .getBase ( ) ) and
286
+ exists ( DataFlow:: PropWrite write | getAHeaderSource ( ) .getAPropertyWrite ( ) = write |
288
287
result = write .getPropertyNameExpr ( )
289
288
)
290
289
}
You can’t perform that action at this time.
0 commit comments