Index: typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php =================================================================== --- typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (Revision 7368) +++ typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (Arbeitskopie) @@ -83,17 +83,17 @@ $this->spid = $pids['_STORAGE_PID']; } - // GPvars: - $this->logintype = t3lib_div::_GP('logintype'); - $this->referer = t3lib_div::_GP('referer'); + // use piVars if exists. if not use GPvars: + $this->logintype = ($this->piVars['logintype']) ? $this->piVars['logintype'] : t3lib_div::_GP('logintype'); + $this->referer = ($this->piVars['referer']) ? $this->piVars['referer'] : t3lib_div::_GP('referer'); $this->noRedirect = ($this->piVars['noredirect'] || $this->conf['redirectDisable']); // if config.typolinkLinkAccessRestrictedPages is set, the var is return_url - $returnUrl = t3lib_div::_GP('return_url'); + $returnUrl = ($this->piVars['return_url']) ? $this->piVars['return_url'] : t3lib_div::_GP('return_url'); if ($returnUrl) { $this->redirectUrl = $returnUrl; } else { - $this->redirectUrl = t3lib_div::_GP('redirect_url'); + $this->redirectUrl = ($this->piVars['redirect_url']) ? $this->piVars['redirect_url'] : t3lib_div::_GP('redirect_url'); } // Get Template @@ -438,7 +438,7 @@ // login error $markerArray['###STATUS_HEADER###'] = $this->getDisplayText('error_header',$this->conf['errorHeader_stdWrap.']); $markerArray['###STATUS_MESSAGE###'] = $this->getDisplayText('error_message',$this->conf['errorMessage_stdWrap.']); - $gpRedirectUrl = t3lib_div::_GP('redirect_url'); + $gpRedirectUrl = ($this->piVars['redirect_url']) ? $this->piVars['redirect_url'] : t3lib_div::_GP('redirect_url'); } } else { if($this->logintype === 'logout') {