refactor: show invalid uri

v1.18.x
Barış Soner Uşaklı 3 years ago
parent 8047900170
commit bba9e7c0f7

@ -32,6 +32,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 = '';
} }

Loading…
Cancel
Save