Cant use drupal_get_private_key() at that point in the installer because we dont have variables yet

8.0.x
Greg Dunlap 2011-09-05 14:04:44 +02:00
parent f699554a54
commit fe446ec255
2 changed files with 1 additions and 1 deletions

View File

@ -971,7 +971,7 @@ function install_settings_form_submit($form, &$form_state) {
// This duplicates drupal_get_token() because that function relies on a
// global hash salt which hasn't been set yet.
$settings['drupal_config_directory_name'] = array(
'value' => 'config_' . drupal_hmac_base64($value, session_id() . drupal_get_private_key() . $settings['drupal_hash_salt']['value']),
'value' => 'config_' . drupal_hmac_base64($value, session_id() . drupal_hash_base64(drupal_random_bytes(55)) . $settings['drupal_hash_salt']['value']),
'required' => TRUE,
);
drupal_rewrite_settings($settings);

0
sites/default/default.settings.php Normal file → Executable file
View File