JS: Temporarily accept a spurious alert

This was due to a bug that will be fixed in the following commit
This commit is contained in:
Asger F
2025-02-21 21:00:47 +01:00
parent 7c2394fab4
commit 38be524b6a

View File

@@ -25,7 +25,7 @@ app.get('/some/path', function(req, res) {
var target = req.param("target");
if (isLocalURL(target))
// OK - request parameter is sanitized before incorporating it into the redirect
res.redirect(target);
res.redirect(target); // $ SPURIOUS: Alert
else
res.redirect(target); // $ Alert - sanitization doesn't apply here
res.redirect(target); // $ Alert - sanitization doesn't apply here