mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 07:50:37 +01:00
fix: convert param to string in slugify
fixes adding users to privilege table
This commit is contained in:
@@ -351,7 +351,7 @@
|
||||
if (!str) {
|
||||
return '';
|
||||
}
|
||||
str = str.replace(utils.trimRegex, '');
|
||||
str = String(str).replace(utils.trimRegex, '');
|
||||
if (utils.isLatin.test(str)) {
|
||||
str = str.replace(utils.invalidLatinChars, '-');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user