remove false positive due to "\n" not being in the relevant relation

This commit is contained in:
Erik Krogh Kristensen
2021-01-18 14:47:29 +01:00
parent 401e516654
commit 01900d7ca2
2 changed files with 7 additions and 1 deletions

View File

@@ -123,4 +123,6 @@ app.use(function(req, res) {
result += replaced;
result = result.replace(/^\s+|\s+$/g, ''); // NOT OK
})();
tainted.match(/(https?:\/\/[^\s]+)/gm); // OK
});