mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
fix validator warning
This commit is contained in:
@@ -308,12 +308,12 @@ Controllers.manifest = function(req, res) {
|
||||
};
|
||||
|
||||
Controllers.outgoing = function(req, res, next) {
|
||||
var url = req.query.url,
|
||||
data = {
|
||||
url: validator.escape(url),
|
||||
title: meta.config.title,
|
||||
breadcrumbs: helpers.buildBreadcrumbs([{text: '[[notifications:outgoing_link]]'}])
|
||||
};
|
||||
var url = req.query.url;
|
||||
var data = {
|
||||
url: validator.escape(String(url)),
|
||||
title: meta.config.title,
|
||||
breadcrumbs: helpers.buildBreadcrumbs([{text: '[[notifications:outgoing_link]]'}])
|
||||
};
|
||||
|
||||
if (url) {
|
||||
res.render('outgoing', data);
|
||||
|
||||
Reference in New Issue
Block a user