[BUGFIX] felogin reset password links not clickable 30/27830/2
authorJigal van Hemert <jigal.van.hemert@typo3.org>
Tue, 25 Feb 2014 08:55:10 +0000 (09:55 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 25 Feb 2014 12:28:43 +0000 (13:28 +0100)
Encoding a few extra character besides the ones according to RFC3986
makes password reset links working again in various mail clients which
do not comply to this RFC (and which do not have plans to fix this in
the near future).

Change-Id: I0b42bef6cb732c5fc6cc2d900407271cb606e301
Fixes: #23984
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/27830
Reviewed-by: Oliver Klee
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php

index fb862bc..a5c4423 100644 (file)
@@ -353,8 +353,8 @@ class tx_felogin_pi1 extends tslib_pibase {
                $isFeloginBaseURL = !empty($this->conf['feloginBaseURL']);
 
                $link = $this->pi_getPageLink($GLOBALS['TSFE']->id, '', array(
-                       $this->prefixId . '[user]' => $user['uid'],
-                       $this->prefixId . '[forgothash]' => $randHash
+                       rawurlencode($this->prefixId . '[user]') => $user['uid'],
+                       rawurlencode($this->prefixId . '[forgothash]') => $randHash
                ));
 
                        // Prefix link if necessary
@@ -984,4 +984,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/felogin/pi1/class.tx_felogin_pi1.php']);
 }
 
-?>
\ No newline at end of file
+?>