mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-19 01:38:54 +00:00
[feature/passwords] Fix incorrect call to helper instead of $this
The driver helper method unique_id is called inside the helper. Therefore, it shouldn't be called via $this->helper but rather via $this. PHPBB3-11610
This commit is contained in:
parent
b6473a515b
commit
05a5ac282d
1 changed files with 2 additions and 2 deletions
|
@ -129,11 +129,11 @@ class phpbb_crypto_driver_helper
|
|||
if (strlen($random) < $length)
|
||||
{
|
||||
$random = '';
|
||||
$random_state = $this->helper->unique_id();
|
||||
$random_state = $this->unique_id();
|
||||
|
||||
for ($i = 0; $i < $length; $i += 16)
|
||||
{
|
||||
$random_state = md5($this->helper->unique_id() . $random_state);
|
||||
$random_state = md5($this->unique_id() . $random_state);
|
||||
$random .= pack('H*', md5($random_state));
|
||||
}
|
||||
$random = substr($random, 0, $length);
|
||||
|
|
Loading…
Add table
Reference in a new issue