? 6-validate.patch
? 6-x-conf-ignore.patch
? 621512-validate.patch
? 775224-settings-conf.patch
? test.patch
Index: domain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v
retrieving revision 1.134.2.19
diff -u -p -r1.134.2.19 domain.module
--- domain.module	25 Apr 2010 21:55:59 -0000	1.134.2.19
+++ domain.module	27 Apr 2010 14:18:25 -0000
@@ -863,7 +863,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.');
     }
   }
@@ -876,7 +876,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.');
   }
