[BUGFIX] Use real HTTP status code as default for redirects 10/57510/6
authorMichael Giek <michael.giek@b13.de>
Mon, 9 Jul 2018 08:52:53 +0000 (10:52 +0200)
committerMathias Brodala <mbrodala@pagemachine.de>
Mon, 9 Jul 2018 12:56:16 +0000 (14:56 +0200)
TCA defines default status code as 307, which seems
like a good default. However the SQL definition should
match this definition to avoid any invalid redirect
status codes.

Releases: master
Resolves: #85513
Related: #85488
Change-Id: I972d83bd782592c77b6606cd6f7d6a1fc82d2414
Reviewed-on: https://review.typo3.org/57510
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Jan Stockfisch <jan.stockfisch@googlemail.com>
Tested-by: Jan Stockfisch <jan.stockfisch@googlemail.com>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
typo3/sysext/redirects/ext_tables.sql

index a1ddf9d..ed440fe 100644 (file)
@@ -9,7 +9,7 @@ CREATE TABLE sys_redirect (
        force_https tinyint(1) unsigned DEFAULT '0' NOT NULL,
        keep_query_parameters tinyint(1) unsigned DEFAULT '0' NOT NULL,
        target varchar(255) DEFAULT '' NOT NULL,
-       target_statuscode int(11) DEFAULT '0' NOT NULL,
+       target_statuscode int(11) DEFAULT '307' NOT NULL,
 
        hitcount int(11) DEFAULT '0' NOT NULL,
        lasthiton int(11) DEFAULT '0' NOT NULL,