Issue #1821172 by spearhead93: Hash the config directory name, unhash the active and staging directory names.
parent
d6a62b0571
commit
1606d2f525
|
@ -254,13 +254,14 @@ function drupal_install_config_directories() {
|
|||
// Add a randomized config directory name to settings.php, unless it was
|
||||
// manually defined in the existing already.
|
||||
if (empty($config_directories)) {
|
||||
$config_directories_hash = drupal_hash_base64(drupal_random_bytes(55));
|
||||
$settings['config_directories'] = array(
|
||||
'value' => array(
|
||||
CONFIG_ACTIVE_DIRECTORY => array(
|
||||
'path' => 'config/active_' . drupal_hash_base64(drupal_random_bytes(55)),
|
||||
'path' => 'config_' . $config_directories_hash . '/active',
|
||||
),
|
||||
CONFIG_STAGING_DIRECTORY => array(
|
||||
'path' => 'config/staging_' . drupal_hash_base64(drupal_random_bytes(55)),
|
||||
'path' => 'config_' . $config_directories_hash . '/staging',
|
||||
),
|
||||
),
|
||||
'required' => TRUE,
|
||||
|
|
Loading…
Reference in New Issue