Skip to content

Commit

Permalink
Ignore www subdomain when cascading config data.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty Wallace committed Mar 23, 2015
1 parent 954a204 commit d64821d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/tempest/Tempest/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ public function __construct()
{
$data = require_once(APP_ROOT . 'config.php');

// Also allow www.{SERVER_NAME}, a common ServerAlias in Apache.
$compareHost = preg_replace('/^www\./', '', HOST);

if (array_key_exists('*', $data))
{
$this->data = $data['*'];
Expand Down

0 comments on commit d64821d

Please sign in to comment.