2 namespace TYPO3\CMS\Frontend\Http;
58 $configuredCookieName = trim(
$GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'cookieName']);
59 if (empty($configuredCookieName)) {
60 $configuredCookieName =
'be_typo_user';
71 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'tslib/index_ts.php'][
'preprocessRequest'])) {
72 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'tslib/index_ts.php'][
'preprocessRequest'] as $hookFunction) {
73 $hookParameters = array();
77 unset($hookParameters);
81 $this->bootstrap->endOutputBufferingAndCleanPreviousOutput();
82 return $this->dispatch($request);
114 protected function dispatch($request)
119 $eID = isset($request->getParsedBody()[
'eID'])
120 ? $request->getParsedBody()[
'eID']
121 : (isset($request->getQueryParams()[
'eID']) ? $request->getQueryParams()[
'eID'] :
'');
123 if (empty($eID) || !isset(
$GLOBALS[
'TYPO3_CONF_VARS'][
'FE'][
'eID_include'][$eID])) {
124 return $response->withStatus(404,
'eID not registered');
127 $configuration =
$GLOBALS[
'TYPO3_CONF_VARS'][
'FE'][
'eID_include'][$eID];
130 if (strpos($configuration,
'::') !==
false || is_callable($configuration)) {
133 $request = $request->withAttribute(
'target', $configuration);
134 return $dispatcher->dispatch($request,
$response);
138 if ($scriptPath ===
'') {
139 throw new Exception(
'Registered eID has invalid script path.', 1416391467);