? 6-validate.patch
Index: domain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v
retrieving revision 1.134
diff -u -p -r1.134 domain.module
--- domain.module	1 Nov 2009 18:20:19 -0000	1.134
+++ domain.module	2 Nov 2009 23:00:44 -0000
@@ -832,7 +832,7 @@ function domain_valid_domain($subdomain)
   else if (substr_count($subdomain, ':') == 1) {
     $parts = explode(':', $subdomain);
     $port = (int) $parts[1];
-    if (empty($port) || $port != (float) $parts[1]) {
+    if (strcmp($port, $parts[1])) {
       $error_list[] = t('The port protocol must be an integer.');
     }
   }
@@ -845,7 +845,7 @@ function domain_valid_domain($subdomain)
     $error_list[] = t('The domain must not end with a dot (.)');
   }
   // Check for valid characters
-  $pattern = '/^[a-z0-9\.\+\-\*\?:]*$/i';
+  $pattern = '/^[a-z0-9\.\-:]*$/i';
   if (!preg_match($pattern, $subdomain)) {
     $error_list[] = t('Only alphanumeric characters, dashes, and a colon are allowed.');
   }
