mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
refactor: show invalid uri
This commit is contained in:
@@ -34,6 +34,7 @@ helpers.buildBodyClass = function (req, res, templateData = {}) {
|
||||
try {
|
||||
p = slugify(decodeURIComponent(p));
|
||||
} catch (err) {
|
||||
winston.error(`Error decoding URI: ${p}`);
|
||||
winston.error(err.stack);
|
||||
p = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user