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

ChangeLog
t3lib/class.t3lib_userauth.php

index 2310a51..ccfa8af 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  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #16050: htmlArea RTE: Backspacing in empty editing area may raise js error
index e3aacb8..c701e8d 100644 (file)
@@ -403,9 +403,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 {