Skip to content

Node.js based forum software built for the modern web

Update index.js, fix outgoing XSS

Mikica Ivosevice24bd2c0e33f
diff --git a/src/controllers/index.js b/src/controllers/index.js
index 25e0b7f1ee..f08d696765 100644
--- a/src/controllers/index.js
+++ b/src/controllers/index.js
@@ -181,7 +181,7 @@ Controllers.robots = function (req, res) {
Controllers.outgoing = function(req, res, next) {
var url = req.query.url,
data = {
- url: url,
+ url: validator.escape(url),
title: meta.config.title,
breadcrumbs: helpers.buildBreadcrumbs([{text: '[[notifications:outgoing_link]]'}])
};