Issue #1821172 by spearhead93: Hash the config directory name, unhash the active and staging directory names.

8.0.x
webchick 2012-10-27 12:03:25 -07:00
parent d6a62b0571
commit 1606d2f525
1 changed files with 3 additions and 2 deletions

View File

@ -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,