diff --git a/D6-core-simpletest.patch b/D6-core-simpletest.patch
index b9d5057..48fc231 100644
--- a/D6-core-simpletest.patch
+++ b/D6-core-simpletest.patch
@@ -1,36 +1,8 @@
-? sites/all/modules
-? sites/default/files
-? sites/default/settings.php
-Index: install.php
-===================================================================
-RCS file: /cvs/drupal/drupal/install.php,v
-retrieving revision 1.113.2.12
-diff -u -p -r1.113.2.12 install.php
---- install.php	9 May 2010 14:13:31 -0000	1.113.2.12
-+++ install.php	7 Oct 2010 21:55:51 -0000
-@@ -20,6 +20,14 @@ function install_main() {
-   require_once './includes/bootstrap.inc';
-   drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION);
- 
-+  // The user agent header is used to pass a database prefix in the request when
-+  // running tests. However, for security reasons, it is imperative that no
-+  // installation be permitted using such a prefix.
-+  if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], "simpletest") !== FALSE) {
-+    header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
-+    exit;
-+  }
-+
-   // This must go after drupal_bootstrap(), which unsets globals!
-   global $profile, $install_locale, $conf;
- 
-Index: includes/bootstrap.inc
-===================================================================
-RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v
-retrieving revision 1.206.2.29
-diff -u -p -r1.206.2.29 bootstrap.inc
---- includes/bootstrap.inc	6 Aug 2010 11:50:24 -0000	1.206.2.29
-+++ includes/bootstrap.inc	7 Oct 2010 21:55:51 -0000
-@@ -1112,7 +1112,7 @@ function drupal_bootstrap($phase) {
+diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
+index aea944d..f4d16f9 100644
+--- a/includes/bootstrap.inc
++++ b/includes/bootstrap.inc
+@@ -1132,7 +1132,7 @@ function drupal_bootstrap($phase) {
  }
  
  function _drupal_bootstrap($phase) {
@@ -39,7 +11,7 @@ diff -u -p -r1.206.2.29 bootstrap.inc
  
    switch ($phase) {
  
-@@ -1138,6 +1138,19 @@ function _drupal_bootstrap($phase) {
+@@ -1158,6 +1158,19 @@ function _drupal_bootstrap($phase) {
        break;
  
      case DRUPAL_BOOTSTRAP_DATABASE:
@@ -59,16 +31,13 @@ diff -u -p -r1.206.2.29 bootstrap.inc
        // Initialize the default database.
        require_once './includes/database.inc';
        db_set_active();
-@@ -1331,3 +1344,46 @@ function ip_address() {
- 
-   return $ip_address;
+@@ -1382,6 +1395,43 @@ function ip_address() {
  }
-+
-+/**
+ 
+ /**
 + * Validate the HMAC and timestamp of a user agent header from simpletest.
 + */
 +function drupal_valid_test_ua($user_agent) {
-+//  global $dbatabases;
 +  global $db_url;
 +
 +  list($prefix, $time, $salt, $hmac) = explode(';', $user_agent);
@@ -76,9 +45,7 @@ diff -u -p -r1.206.2.29 bootstrap.inc
 +  // We use the database credentials from settings.php to make the HMAC key, since
 +  // the database is not yet initialized and we can't access any Drupal variables.
 +  // The file properties add more entropy not easily accessible to others.
-+//  $filepath = DRUPAL_ROOT . '/includes/bootstrap.inc';
 +  $filepath = './includes/bootstrap.inc';
-+//  $key = sha1(serialize($databases) . filectime($filepath) . fileinode($filepath), TRUE);
 +  $key = sha1(serialize($db_url) . filectime($filepath) . fileinode($filepath), TRUE);
 +  // The HMAC must match.
 +  return $hmac == base64_encode(hash_hmac('sha1', $check_string, $key, TRUE));
@@ -88,7 +55,6 @@ diff -u -p -r1.206.2.29 bootstrap.inc
 + * Generate a user agent string with a HMAC and timestamp for simpletest.
 + */
 +function drupal_generate_test_ua($prefix) {
-+//  global $dbatabases;
 +  global $db_url;
 +  static $key;
 +
@@ -96,9 +62,7 @@ diff -u -p -r1.206.2.29 bootstrap.inc
 +    // We use the database credentials to make the HMAC key, since we
 +    // check the HMAC before the database is initialized. filectime()
 +    // and fileinode() are not easily determined from remote.
-+//    $filepath = DRUPAL_ROOT . '/includes/bootstrap.inc';
 +    $filepath = './includes/bootstrap.inc';
-+//    $key = sha1(serialize($databases) . filectime($filepath) . fileinode($filepath), TRUE);
 +    $key = sha1(serialize($db_url) . filectime($filepath) . fileinode($filepath), TRUE);
 +  }
 +   // Generate a moderately secure HMAC based on the database credentials.
@@ -106,14 +70,16 @@ diff -u -p -r1.206.2.29 bootstrap.inc
 +   $check_string = $prefix . ';' . time() . ';' . $salt;
 +   return  $check_string . ';' . base64_encode(hash_hmac('sha1', $check_string, $key, TRUE));
 +}
-Index: includes/common.inc
-===================================================================
-RCS file: /cvs/drupal/drupal/includes/common.inc,v
-retrieving revision 1.756.2.98
-diff -u -p -r1.756.2.98 common.inc
---- includes/common.inc	6 Sep 2010 11:13:27 -0000	1.756.2.98
-+++ includes/common.inc	7 Oct 2010 21:55:51 -0000
-@@ -531,7 +531,7 @@ function drupal_http_request($url, $head
++
++/**
+  * Returns a URL-safe, base64 encoded string of highly randomized bytes (over the full 8-bit range).
+  *
+  * @param $byte_count
+diff --git a/includes/common.inc b/includes/common.inc
+index 19798ba..3dbf061 100644
+--- a/includes/common.inc
++++ b/includes/common.inc
+@@ -552,7 +552,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data =
    // same time won't interfere with each other as they would if the database
    // prefix were stored statically in a file or database variable.
    if (is_string($db_prefix) && preg_match("/^simpletest\d+$/", $db_prefix, $matches)) {
@@ -122,7 +88,7 @@ diff -u -p -r1.756.2.98 common.inc
    }
  
    foreach ($headers as $header => $value) {
-@@ -2661,14 +2661,24 @@ function _drupal_bootstrap_full() {
+@@ -2735,13 +2735,23 @@ function _drupal_bootstrap_full() {
    require_once './includes/mail.inc';
    require_once './includes/actions.inc';
    // Set the Drupal custom error handler.
@@ -135,7 +101,6 @@ diff -u -p -r1.756.2.98 common.inc
    unicode_check();
    // Undo magic quotes
    fix_gpc_magic();
--  // Load all enabled modules
 +
 +  if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'simpletest') !== FALSE) {
 +    // Valid SimpleTest user-agent, log fatal errors to test specific file
@@ -145,11 +110,10 @@ diff -u -p -r1.756.2.98 common.inc
 +    ini_set('error_log', file_directory_path() . '/error.log');
 +  }
 +
-+// Load all enabled modules
+   // Load all enabled modules
    module_load_all();
-   // Let all modules take action before menu system handles the request
-   // We do not want this while running update.php.
-@@ -3789,3 +3799,264 @@ function _drupal_flush_css_js() {
+   // Ensure mt_rand is reseeded, to prevent random values from one page load
+@@ -3874,3 +3884,262 @@ function _drupal_flush_css_js() {
    }
    variable_set('css_js_query_string', $new_character . substr($string_history, 0, 19));
  }
@@ -249,7 +213,6 @@ diff -u -p -r1.756.2.98 common.inc
 +    // The first element in the stack is the call, the second element gives us the caller.
 +    // We skip calls that occurred in one of the classes of the database layer
 +    // or in one of its global functions.
-+//    $db_functions = array('db_query', 'pager_query', 'db_query_range', 'db_query_temporary', 'update_sql');
 +    $db_functions = array('db_query', '_db_query', 'pager_query', 'db_query_range', 'db_query_temporary', 'update_sql');
 +    while (!empty($backtrace[1]) && ($caller = $backtrace[1]) &&
 +        ((isset($caller['class']) && (strpos($caller['class'], 'Query') !== FALSE || strpos($caller['class'], 'Database') !== FALSE || strpos($caller['class'], 'PDO') !== FALSE)) ||
@@ -283,7 +246,6 @@ diff -u -p -r1.756.2.98 common.inc
 +function _drupal_log_error($error, $fatal = FALSE) {
 +  // Initialize a maintenance theme if the boostrap was not complete.
 +  // Do it early because drupal_set_message() triggers a drupal_theme_initialize().
-+//  if ($fatal && (drupal_get_bootstrap_phase() != DRUPAL_BOOTSTRAP_FULL)) {
 +  if ($fatal) { // Assumed full bootstrap since common.inc loaded.
 +    unset($GLOBALS['theme']);
 +    if (!defined('MAINTENANCE_MODE')) {
@@ -414,3 +376,22 @@ diff -u -p -r1.756.2.98 common.inc
 +  $string = $print_r ? print_r($data, TRUE) : var_export($data, TRUE);
 +  trigger_error(trim($label ? "$label: $string" : $string));
 +}
+diff --git a/install.php b/install.php
+index 0839d38..1b71547 100644
+--- a/install.php
++++ b/install.php
+@@ -19,6 +19,14 @@ function install_main() {
+   require_once './includes/bootstrap.inc';
+   drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION);
+ 
++  // The user agent header is used to pass a database prefix in the request when
++  // running tests. However, for security reasons, it is imperative that no
++  // installation be permitted using such a prefix.
++  if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], "simpletest") !== FALSE) {
++    header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
++    exit;
++  }
++
+   // This must go after drupal_bootstrap(), which unsets globals!
+   global $profile, $install_locale, $conf;
+ 
