[BUGFIX] Invalid constant in the domain redirect function 05/27105/2
authorTim Lochmueller <tim@fruit-lab.de>
Mon, 27 Jan 2014 08:44:14 +0000 (09:44 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 28 Jan 2014 21:00:58 +0000 (22:00 +0100)
There is a "copy-and-paste" mistake in the domain redirect mechanism.
The function HttpUtility::redirect should call with a valid HTTP
status code (the const value) and not with the name of the constant.

Resolves: #55350
Releases: 6.2, 6.1, 6.0, 4.5
Change-Id: I97f55ac8df1688011198666da1fd322a5c3bd323
Reviewed-on: https://review.typo3.org/27105
Reviewed-by: Tim Lochm├╝ller
Tested-by: Tim Lochm├╝ller
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
t3lib/class.t3lib_page.php

index e6f5ed8..3da50a7 100644 (file)
@@ -588,7 +588,7 @@ class t3lib_pageSelect {
                                if ($statusCode && defined('t3lib_utility_Http::HTTP_STATUS_' . $statusCode)) {
                                        t3lib_utility_Http::redirect($redirectUrl, constant('t3lib_utility_Http::HTTP_STATUS_' . $statusCode));
                                } else {
-                                       t3lib_utility_Http::redirect($redirectUrl, 't3lib_utility_Http::HTTP_STATUS_301');
+                                       t3lib_utility_Http::redirect($redirectUrl, t3lib_utility_Http::HTTP_STATUS_301);
                                }
                                exit;
                        } else {