diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 7f903a2100..5612ae0d83 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -688,7 +688,7 @@ function drupal_valid_test_ua($new_prefix = NULL) { $private_key = file_get_contents($key_file); // The file properties add more entropy not easily accessible to others. $key = $private_key . filectime(__FILE__) . fileinode(__FILE__); - $time_diff = (int) $_SERVER['REQUEST_TIME'] - $time; + $time_diff = time() - $time; $test_hmac = Crypt::hmacBase64($check_string, $key); // Since we are making a local request a 600 second time window is allowed, // and the HMAC must match.