diff --git a/controllers/user.js b/controllers/user.js index 5dbb1fe877..9d93bde209 100644 --- a/controllers/user.js +++ b/controllers/user.js @@ -126,7 +126,7 @@ exports.setting = function (req, res, next) { if (url !== '') { try { - if (url.indexOf('http://') < 0) { + if ((url.indexOf('http://') < 0) && (url.indexOf('https://') < 0)) { url = 'http://' + url; } check(url, '不正确的个人网站。').isUrl();