Skip to content

Commit

Permalink
Don't reset $settings['trusted_host_patterns'] if it's already set
Browse files Browse the repository at this point in the history
  • Loading branch information
back-2-95 committed Mar 31, 2021
1 parent d685ab2 commit c452c5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DrupalEnvDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ private function setGlobalDefaults() {
* @see https://www.drupal.org/node/2410395
*/
private function setTrustedHostPatterns() {
$this->settings['trusted_host_patterns'] = [];
if (!isset($this->settings['trusted_host_patterns'])) {
$this->settings['trusted_host_patterns'] = [];
}

$hosts = [];

// Drupal route(s).
Expand Down

0 comments on commit c452c5e

Please sign in to comment.