diff --git a/core/server/apps/subscribers/lib/router.js b/core/server/apps/subscribers/lib/router.js index ca49b45ff8..5499d10bc1 100644 --- a/core/server/apps/subscribers/lib/router.js +++ b/core/server/apps/subscribers/lib/router.js @@ -32,6 +32,8 @@ function _renderer(req, res) { */ function errorHandler(error, req, res, next) { req.body.email = ''; + req.body.subscribed_url = santizeUrl(req.body.subscribed_url); + req.body.subscribed_referrer = santizeUrl(req.body.subscribed_referrer); if (error.statusCode !== 404) { res.locals.error = error;