mirror of
https://github.com/werkraum-media/abtest.git
synced 2024-12-28 02:46:10 +01:00
Daniel Siepmann
604110e737
We will use and maintain the extension for one of our customers. We add our basic setup. We add tests. We refactor code. We use newer APIs of TYPO3. We will integrate Matomo A/B Testing afterwards as next step.
19 lines
845 B
Diff
19 lines
845 B
Diff
See: https://github.com/TYPO3/testing-framework/issues/36
|
|
|
|
diff --git a/Classes/Core/Functional/Framework/Frontend/RequestBootstrap.php b/Classes/Core/Functional/Framework/Frontend/RequestBootstrap.php
|
|
index f8b2a40..4f4020d 100644
|
|
--- a/Classes/Core/Functional/Framework/Frontend/RequestBootstrap.php
|
|
+++ b/Classes/Core/Functional/Framework/Frontend/RequestBootstrap.php
|
|
@@ -106,6 +106,12 @@ class RequestBootstrap
|
|
}
|
|
// Populating $_COOKIE
|
|
$_COOKIE = [];
|
|
+ if ($this->request->hasHeader('Cookie')) {
|
|
+ foreach ($this->request->getHeader('Cookie') as $cookie) {
|
|
+ [$cookieName, $cookieValue] = explode('=', $cookie, 2);
|
|
+ $_COOKIE[$cookieName] = rtrim($cookieValue, ';');
|
|
+ }
|
|
+ }
|
|
|
|
// Setting up the server environment
|
|
$_SERVER = [];
|