Fixed bug #15503: Improve t3lib_userAuth::getCookie() (Thanks to Michael Bürgi)
authorSteffen Gebert <steffen.gebert@typo3.org>
Wed, 27 Oct 2010 15:59:04 +0000 (15:59 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Wed, 27 Oct 2010 15:59:04 +0000 (15:59 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@9208 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_userauth.php

index d7361bb..bdd8a0f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-27  Steffen Gebert  <steffen@steffen-gebert.de>
+
+       * Fixed bug #15503: Improve t3lib_userAuth::getCookie() (Thanks to Michael Bürgi)
+
 2010-10-18  Xavier Perseguers  <typo3@perseguers.ch>
 
        * Fixed bug #1318: 'removeTag' does not remove closing tags
index 3505a0a..4ab1e59 100755 (executable)
@@ -343,9 +343,9 @@ class t3lib_userAuth {
                        $cookies = t3lib_div::trimExplode(';', $_SERVER['HTTP_COOKIE']);
                        foreach ($cookies as $cookie) {
                                list ($name, $value) = t3lib_div::trimExplode('=', $cookie);
-                               if ($name == $cookieName) {
+                               if (strcmp(trim($name), $cookieName) == 0) {
                                        // Use the last one
-                                       $cookieValue = stripslashes($value);
+                                       $cookieValue = urldecode($value);
                                }
                        }
                } else {