Skip to content

Commit

Permalink
Override hash_salt when empty vs not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamzimmermann committed Mar 8, 2022
1 parent c3e6c04 commit 9728a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/sites/default/settings.platformsh.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

// Set the project-specific entropy value, used for generating one-time
// keys and such.
$settings['hash_salt'] = $settings['hash_salt'] ?? $platformsh->projectEntropy;
$settings['hash_salt'] = !empty($settings['hash_salt']) ? $platformsh->projectEntropy : '';

// Set the deployment identifier, which is used by some Drupal cache systems.
$settings['deployment_identifier'] = $settings['deployment_identifier'] ?? $platformsh->treeId;
Expand Down

0 comments on commit 9728a76

Please sign in to comment.