Skip to content

Commit

Permalink
Merge pull request #133 from meteormatt/master
Browse files Browse the repository at this point in the history
#132 “setting”页面里的“个人网站”选项不支持"https://"
  • Loading branch information
fengmk2 committed Mar 22, 2013
2 parents 34c00fa + b3b6e90 commit 8fdde67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8fdde67

Please sign in to comment.