Node.js based forum software built for the modern web
dont add http:// to website if its empty
barisusakli4e793995a0c9
diff --git a/src/user/profile.js b/src/user/profile.jsindex 4961c1d13d..448cabc6a9 100644--- a/src/user/profile.js+++ b/src/user/profile.js@@ -121,7 +121,7 @@ module.exports = function(User) {} else if (field === 'signature') {data[field] = S(data[field]).stripTags().s;} else if (field === 'website') {- if (!data[field].startsWith('http://') && !data[field].startsWith('https://')) {+ if (data[field] && !data[field].startsWith('http://') && !data[field].startsWith('https://')) {data[field] = 'http://' + data[field];}}