From 9eb5bdcd97c842d027d76896ea2b9993ec0463fd Mon Sep 17 00:00:00 2001 From: fatchan Date: Mon, 13 Apr 2020 14:30:39 +1000 Subject: [PATCH] typo --- models/forms/editpost.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/forms/editpost.js b/models/forms/editpost.js index 5809798c..81a41b78 100644 --- a/models/forms/editpost.js +++ b/models/forms/editpost.js @@ -25,8 +25,8 @@ module.exports = async (req, res, next) => { const globalSettings = await cache.get('globalsettings'); if (globalSettings && globalSettings.filters.length > 0 && globalSettings.filterMode > 0) { let hitGlobalFilter = false - , ban; - , concatContents = `|${req.body.name}|${req.body.message}|${req.body.subject}|${req.body.email}|${res.locals.numFiles > 0 ? req.files.file.map(f => f.name).join('|') : ''}`.toLowerCase(); + , ban + , concatContents = `|${req.body.name}|${req.body.message}|${req.body.subject}|${req.body.email}|${res.locals.numFiles > 0 ? req.files.file.map(f => f.name).join('|') : ''}`.toLowerCase() , allContents = concatContents; if (strictFiltering) { allContents += concatContents.normalize('NFD').replace(/[\u0300-\u036f]/g, ''); //removing diacritics