$this->removeAll($user, 'website');
$i = 0;
foreach($sites as $site) {
- if (!empty($site['value']) && !Validate::uri(
- $site['value'],
- array('allowed_schemes' => array('http', 'https')))
- ) {
+ if (!empty($site['value']) && !common_valid_http_url($site['value'])) {
// TRANS: Exception thrown when entering an invalid URL.
// TRANS: %s is the invalid URL.
throw new Exception(sprintf(_m('Invalid URL: %s.'), $site['value']));