mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
remove FP from js/regexpinjection where no regexp was constructed
This commit is contained in:
@@ -50,4 +50,13 @@ app.get('/findKey', function(req, res) {
|
||||
URI(`${protocol}://${host}${path}`).search(input); // OK, but still flagged
|
||||
URI(`${protocol}://${host}${path}`).search(input).href(); // OK
|
||||
unknown.search(input).unknown; // OK
|
||||
|
||||
});
|
||||
|
||||
import * as Search from './search';
|
||||
|
||||
app.get('/findKey', function(req, res) {
|
||||
var key = req.param("key"), input = req.param("input");
|
||||
|
||||
Search.search(input); // OK!
|
||||
});
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
module.someOtherExport = true;
|
||||
|
||||
|
||||
export function search(query) {
|
||||
// Do nothing!
|
||||
}
|
||||
Reference in New Issue
Block a user