[BUGFIX] Don't preserve piVars in felogin links 51/20351/3
authorJigal van Hemert <jigal@xs4all.nl>
Tue, 16 Apr 2013 12:03:37 +0000 (14:03 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 5 May 2013 15:21:40 +0000 (17:21 +0200)
Change-Id: Icb60d6ab5725da2ffe5f67c2b0dcf02280a91ab3
Releases: 6.1, 6.0, 4.7
Fixes: #46829
Reviewed-on: https://review.typo3.org/20351
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Michael Stucki
Tested-by: Michael Stucki
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php
typo3/sysext/felogin/Tests/Unit/Controller/FrontendLoginControllerTest.php

index 8bcbf9e..c571b1b 100644 (file)
@@ -773,7 +773,8 @@ class FrontendLoginController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
                        $getVars['no_cache'],
                        $getVars['logintype'],
                        $getVars['redirect_url'],
-                       $getVars['cHash']
+                       $getVars['cHash'],
+                       $getVars[$this->prefixId]
                );
                if ($this->conf['preserveGETvars'] === 'all') {
                        $preserveQueryParts = $getVars;
index 9890410..b8501a0 100644 (file)
@@ -316,6 +316,9 @@ class FrontendLoginTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                                        'special2' => array(
                                                'foo' => 'bar',
                                        ),
+                                       'tx_felogin_pi1' => array(
+                                               'forgot' => 1,
+                                       ),
                                ),
                                'all',
                                '&special1=23&special2[foo]=bar',