mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3986 from tractorcow/pulls/3.1/fix-gridfield-bug
BUG Fix gridfield generating invalid session keys
This commit is contained in:
commit
a59e102c61
@ -840,7 +840,8 @@ class GridField_FormAction extends FormAction {
|
|||||||
'args' => $this->args,
|
'args' => $this->args,
|
||||||
);
|
);
|
||||||
|
|
||||||
$id = substr(md5(serialize($state)), 0, 8);
|
// Ensure $id doesn't contain only numeric characters
|
||||||
|
$id = 'gf_'.substr(md5(serialize($state)), 0, 8);
|
||||||
Session::set($id, $state);
|
Session::set($id, $state);
|
||||||
$actionData['StateID'] = $id;
|
$actionData['StateID'] = $id;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user