prevent inline js payloads from executing in outgoing page

v1.18.x
Julian Lam 7 years ago
parent 67ba6bb820
commit 5863d64d27

@ -391,7 +391,7 @@ Controllers.manifest = function (req, res) {
Controllers.outgoing = function (req, res, next) { Controllers.outgoing = function (req, res, next) {
var url = req.query.url || ''; var url = req.query.url || '';
if (!url) { if (!url || url.startsWith('javascript:')) {
return next(); return next();
} }

Loading…
Cancel
Save