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 {
|
try {
|
||||||
p = slugify(decodeURIComponent(p));
|
p = slugify(decodeURIComponent(p));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
winston.error(`Error decoding URI: ${p}`);
|
||||||
winston.error(err.stack);
|
winston.error(err.stack);
|
||||||
p = '';
|
p = '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user