Skip to content

Commit 327b6ca

Browse files
authored
Merge pull request #73 from ChromaticHQ/hash-salt-logic
Override hash_salt when empty vs not set.
2 parents ce3d8ab + b493e10 commit 327b6ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/sites/default/settings.platformsh.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108

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

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

0 commit comments

Comments
 (0)