mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
Update index.js, fix outgoing XSS
Fix XSS on /outgoing route
This commit is contained in:
@@ -181,7 +181,7 @@ Controllers.robots = 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,
|
||||||
data = {
|
data = {
|
||||||
url: url,
|
url: validator.escape(url),
|
||||||
title: meta.config.title,
|
title: meta.config.title,
|
||||||
breadcrumbs: helpers.buildBreadcrumbs([{text: '[[notifications:outgoing_link]]'}])
|
breadcrumbs: helpers.buildBreadcrumbs([{text: '[[notifications:outgoing_link]]'}])
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user