mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Use microtime()
This commit is contained in:
parent
985abc7557
commit
a4a78b82cb
@ -164,7 +164,7 @@ abstract class MultiForm extends Form {
|
||||
// @TODO fix the fact that you can continually refresh on the first step creating new records
|
||||
$this->session = new MultiFormSession();
|
||||
$this->session->write();
|
||||
if($urlType == 'Hash') $this->session->Hash = sha1($this->session->ID);
|
||||
if($urlType == 'Hash') $this->session->Hash = sha1($this->session->ID . '-' . microtime());
|
||||
$this->session->write(); // I guess we could hash something else than the ID, this is a bit ugly...
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user