Skip to content

Commit

Permalink
nodejs-insecure-url-parse.js test: add more t cases
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Aug 4, 2023
1 parent 0438f47 commit a36f82c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions t3sts/semgrep_rules/nodejs-insecure-url-parse.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
// ruleid: nodejs-insecure-url-parse
url.parse("here lies dragons");
// ruleid: nodejs-insecure-url-parse
require('url').parse("here lies dragons");

var uparser = require('url');

// ruleid: nodejs-insecure-url-parse
uparser.parse("here lies dragons");

function() {
// ruleid: nodejs-insecure-url-parse
uparser.parse("here lies dragons");
}

// ruleid: nodejs-insecure-url-parse
setTimeout(()=> uparser.parse("here lies dragons"), 1000);

0 comments on commit a36f82c

Please sign in to comment.