elofgren: BUGFIX: Make 'Remember me next time?' setting work even if the ':' in _COOKIEalc_enc? is converted to '%3a' by calling urldecode($_COOKIEalc_enc?) See: http://www.silverstripe.com/google-summer-of-code-forum/flat/1826#post1832

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41940 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-15 21:07:24 +00:00
parent 5a06cb4684
commit 180c06fd15

View File

@ -66,7 +66,7 @@ class Member extends DataObject {
static function autoLogin() {
if(isset($_COOKIE['alc_enc']) && !Session::get("loggedInAs")) {
@list($uid, $token) = explode(':', $_COOKIE['alc_enc'], 2);
@list($uid, $token) = explode(':', urldecode($_COOKIE['alc_enc']), 2);
$SQL_uid = Convert::raw2sql($uid);
$member = DataObject::get_one(