Skip to content

Commit d01f84f

Browse files
erik-kroghEsben Sparre Andreasen
andauthored
fix comment in passport test
Co-Authored-By: Esben Sparre Andreasen <42067045+esben-semmle@users.noreply.github.com>
1 parent 26f6b1d commit d01f84f

File tree

1 file changed

+2
-2
lines changed
  • javascript/ql/test/library-tests/frameworks/Express/src

1 file changed

+2
-2
lines changed

javascript/ql/test/library-tests/frameworks/Express/src/passport.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ passport.use(new twitter.Strategy({
2525
callbackURL : "baz",
2626
passReqToCallback : true
2727
}, function(req, accessToken, refreshToken, profile, done) {
28-
req.body; // Tainted value! passReqToCallback is set to true. Treated similarly to the req argument from Express.
29-
}));
28+
req.body; // `passReqToCallback` is `true`, so `req` is assumed to be an Express request object, causing this to be a `RequestInputAccss`
29+
}));

0 commit comments

Comments
 (0)