diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-07-05 23:19:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-05 23:19:35 +0300 |
commit | 57e252ff5a2fcfaf634a6ee2dd1ec7af8d41632d (patch) | |
tree | 5068eb2ffdbcc7c0dc8478caaa43700cb3edd530 /tests/PHPUnit/bootstrap.php | |
parent | 41615714f22f91c03d60f220bd91b80467bb5b7b (diff) |
Improve host validation (#16169)
Diffstat (limited to 'tests/PHPUnit/bootstrap.php')
-rw-r--r-- | tests/PHPUnit/bootstrap.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/PHPUnit/bootstrap.php b/tests/PHPUnit/bootstrap.php index c5bc17aa18..88e5362054 100644 --- a/tests/PHPUnit/bootstrap.php +++ b/tests/PHPUnit/bootstrap.php @@ -54,6 +54,7 @@ function setPiwikDomainFromEnvVar() $piwikDomain = getenv('PIWIK_DOMAIN'); if (!empty($piwikDomain)) { $_SERVER['HTTP_HOST'] = $piwikDomain; + $_SERVER['SERVER_NAME'] = $piwikDomain; } } |