mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Merge pull request #3449 from Deltik/fix-3437
Fixes #3437 – e_form::inlineToken() performance
This commit is contained in:
@@ -67,7 +67,7 @@ class e_form
|
|||||||
protected $_tabindex_enabled = true;
|
protected $_tabindex_enabled = true;
|
||||||
protected $_cached_attributes = array();
|
protected $_cached_attributes = array();
|
||||||
protected $_field_warnings = array();
|
protected $_field_warnings = array();
|
||||||
|
protected $_inline_token = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var user_class
|
* @var user_class
|
||||||
@@ -4420,7 +4420,9 @@ class e_form
|
|||||||
*/
|
*/
|
||||||
private function inlineToken()
|
private function inlineToken()
|
||||||
{
|
{
|
||||||
return password_hash(session_id(), PASSWORD_DEFAULT);
|
$this->_inline_token = $this->_inline_token ?:
|
||||||
|
password_hash(session_id(), PASSWORD_DEFAULT, ['cost' => 04]);
|
||||||
|
return $this->_inline_token;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user