Index: hosting_site.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/hosting/site/hosting_site.module,v
retrieving revision 1.83
diff -u -r1.83 hosting_site.module
--- hosting_site.module	24 Mar 2009 16:53:29 -0000	1.83
+++ hosting_site.module	26 Mar 2009 20:39:28 -0000
@@ -350,11 +350,12 @@
 }
 
 function hosting_site_validate(&$node) {
-  if (!_hosting_site_validate_fqdn($node->title)) {
+  $url = strtolower($node->title); // domain names are case-insensitive
+  if (!_hosting_site_validate_fqdn($url)) {
     form_set_error('title', t("You have not specified a valid url for this site."));
   }
   # TODO: maybe we should allow creation of sites that conflict with HOSTING_SITE_DISABLED (which would then need to be renamed before being re-enabled)
-  if (hosting_site_exists($node->title, $node->nid)) {
+  if (hosting_site_exists($url, $node->nid)) {
     form_set_error('title', t("The domain name you have specified is not unique."));
   }
   if (!$node->new_client && !hosting_get_client($node->client)) {
@@ -369,6 +370,10 @@
 
 }
 
+function hosting_site_submit(&$node) {
+  $node->title = strtolower($node->title); // domain names are case-insensitive
+}
+
 function hosting_site_insert(&$node) {
   if (!($node->site_status & HOSTING_SITE_IMPORTED)) {
     $node->site_status = HOSTING_SITE_ENABLED; # HOSTING_SITE_NOTINSTALLED implicit
