mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
5a06cb4684
commit
180c06fd15
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user