Skip to content
Permalink
Browse files

Don't require protocol for website

fixes #3657

- we didn't require this previously, and adding it causes issues
  • Loading branch information...
ErisDS committed Aug 8, 2014
1 parent 4b83dfd commit e01046df11614bd817e27b666d34680574af256e
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/server/data/validation/index.js
@@ -24,7 +24,7 @@ validator.extend('notContains', function (str, badString) {
});

validator.extend('isEmptyOrURL', function (str) {
return (_.isEmpty(str) || validator.isURL(str, { protocols: ['http', 'https'], require_protocol: true }));
return (_.isEmpty(str) || validator.isURL(str, { require_protocol: false }));
});

// Validation validation against schema attributes

0 comments on commit e01046d

Please sign in to comment.
You can’t perform that action at this time.