mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
refactor: show invalid uri
This commit is contained in:
@@ -32,6 +32,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