[BUGFIX] Correctly evaluate content edit permissions for users
[Packages/TYPO3.CMS.git] / index.php
index 4a62d4c..0627918 100644 (file)
--- a/index.php
+++ b/index.php
  * @see https://forge.typo3.org/issues/64504
  */
 if (version_compare(PHP_VERSION, '5.5.0', '<')) {
-       die('TYPO3 CMS requires PHP 5.5 or above');
+    die('TYPO3 CMS requires PHP 5.5 or above');
 }
 
 // Set up the application for the Frontend
-call_user_func(function() {
-       $classLoader = require __DIR__ . '/typo3/vendor/autoload.php';
-       (new \TYPO3\CMS\Frontend\Http\Application($classLoader))->run();
+call_user_func(function () {
+    $classLoader = require rtrim(realpath(__DIR__ . '/typo3'), '\\/') . '/../vendor/autoload.php';
+    (new \TYPO3\CMS\Frontend\Http\Application($classLoader))->run();
 });