? 6-validate.patch
? 6-x-conf-ignore.patch
? 723262-test.patch
Index: domain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v
retrieving revision 1.134.2.9
diff -u -p -r1.134.2.9 domain.module
--- domain.module	28 Feb 2010 23:46:49 -0000	1.134.2.9
+++ domain.module	28 Feb 2010 23:53:48 -0000
@@ -1920,14 +1920,25 @@ function domain_resolve_host($name = '')
 }
 
 /**
- * Determines current fully qualified domain name.
+ * Determines current, fully qualified domain name.
+ *
+ * Relies on $_SERVER['HTTP_HOST'] being set. Note
+ * that this value has already been security checked by
+ * Drupal core. Otherwise, we never get this far.
+ *
+ * @see conf_init()
  *
  * @return
  * The current (host) domain name as a String.
  */
 function domain_request_name() {
-  // We lower case this, since EXAMPLE.com == example.com.
-  return strtolower(rtrim($_SERVER['HTTP_HOST']));
+  if (isset($_SERVER['HTTP_HOST'])) { 
+    // We lower case this, since EXAMPLE.com == example.com.
+    return strtolower(rtrim($_SERVER['HTTP_HOST']));
+  }
+  else {
+    return '';
+  }
 }
 
 /**
