[FOLLOWUP][TASK] Cleanup bootstrap 57/41357/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Wed, 15 Jul 2015 20:21:38 +0000 (22:21 +0200)
committerBenjamin Mack <benni@typo3.org>
Wed, 15 Jul 2015 20:24:11 +0000 (22:24 +0200)
Redirect does not work as the application proceeds
and throws an exception even after sending the header.

Die after setting the redirect header to fix this.

Releases: master
Resolves: #67645
Change-Id: I90adcfa4f2f29bbfdb63cc8cf1288879eee5ae78
Reviewed-on: http://review.typo3.org/41357
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/core/Classes/Core/Bootstrap.php

index 71f48f0..b2e19c0 100644 (file)
@@ -225,6 +225,7 @@ class Bootstrap {
        public function redirectToInstallTool($relativePathPart = '') {
                $backPathToSiteRoot = str_repeat('../', count(explode('/', $relativePathPart)) - 1);
                header('Location: ' . $backPathToSiteRoot . 'typo3/sysext/install/Start/Install.php');
+               die;
        }
 
        /**