phpBB

Code Changes

File: phpbb/profilefields/type/type_url.php

  Unmodified   Added   Modified   Removed
Line 64Line 64
			return false;
}


			return false;
}


		if (!preg_match('#^' . get_preg_expression('url') . '$#iu', $field_value))

		if (!preg_match('#^' . get_preg_expression('url_http') . '$#iu', $field_value))

		{
return $this->user->lang('FIELD_INVALID_URL', $this->get_field_name($field_data['lang_name']));
}

return false;

		{
return $this->user->lang('FIELD_INVALID_URL', $this->get_field_name($field_data['lang_name']));
}

return false;

 
	}

/**
* {@inheritDoc}
*/
public function get_profile_value($field_value, $field_data)
{
if (!preg_match('#^' . get_preg_expression('url_http') . '$#iu', $field_value))
{
return null;
}

return parent::get_profile_value($field_value, $field_data);

	}
}


	}
}