Node.js based forum software built for the modern web
fix: #8168 re-allowing slashes in homePageRoute
Julian Lam667608a02c84
diff --git a/src/user/settings.js b/src/user/settings.jsindex 0a1ca94839..23e0e95f77 100644--- a/src/user/settings.js+++ b/src/user/settings.js@@ -59,7 +59,7 @@ module.exports = function (User) {settings.restrictChat = parseInt(getSetting(settings, 'restrictChat', 0), 10) === 1;settings.topicSearchEnabled = parseInt(getSetting(settings, 'topicSearchEnabled', 0), 10) === 1;settings.bootswatchSkin = validator.escape(String(settings.bootswatchSkin || ''));- settings.homePageRoute = validator.escape(String(settings.homePageRoute || ''));+ settings.homePageRoute = validator.escape(String(settings.homePageRoute || '')).replace('/', '/');settings.scrollToMyPost = parseInt(getSetting(settings, 'scrollToMyPost', 1), 10) === 1;settings.categoryWatchState = getSetting(settings, 'categoryWatchState', 'notwatching');