mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
closes #6390
This commit is contained in:
@@ -133,7 +133,7 @@ module.exports = function (middleware) {
|
|||||||
var parts = clean.split('/').slice(0, 3);
|
var parts = clean.split('/').slice(0, 3);
|
||||||
parts.forEach(function (p, index) {
|
parts.forEach(function (p, index) {
|
||||||
try {
|
try {
|
||||||
p = decodeURIComponent(p);
|
p = utils.slugify(decodeURIComponent(p));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
winston.error(err);
|
winston.error(err);
|
||||||
p = '';
|
p = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user