Fixed bug #8013: Felogin redirectMode does not work with spaces (Thanks to Steffen...
authorBenni Mack <benni.mack@typo3.org>
Sun, 6 Apr 2008 14:00:07 +0000 (14:00 +0000)
committerBenni Mack <benni.mack@typo3.org>
Sun, 6 Apr 2008 14:00:07 +0000 (14:00 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3537 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php

index 64d2997..7481baf 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2008-04-06  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed bug #8013: Felogin redirectMode does not work with spaces (Thanks to Steffen Kamper)
        * Fixed bug #7317: CSH popup not working in flexforms (Thanks to Kasper Ligaard)
        * Fixed bug #8028: Databases with an "-" in it can't be used (Thanks to Steffen Kamper)
 
index 2da6324..3cfa2a2 100644 (file)
@@ -314,7 +314,7 @@ class tx_felogin_pi1 extends tslib_pibase {
         */
         protected function processRedirect() {
                if ($this->conf['redirectMode']) {
-                       foreach (explode(',',$this->conf['redirectMode']) as $redirMethod) {
+                       foreach (t3lib_div::trimExplode(',', $this->conf['redirectMode'],1) as $redirMethod) {
                                if ($GLOBALS['TSFE']->loginUser && $this->logintype === 'login') {
                                                // logintype is needed because the login-page wouldn't be accessible anymore after a login (would always redirect)
                                        switch ($redirMethod) {