mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-14 04:34:07 +02:00
- replaced array_rand($array) with mt_rand(0, sizeof($array) - 1) as array_rand did not take my seed git-svn-id: file:///svn/phpbb/trunk@6705 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -39,7 +39,7 @@ class ucp_confirm
|
||||
}
|
||||
|
||||
// Try and grab code for this id and session
|
||||
$sql = 'SELECT code
|
||||
$sql = 'SELECT code, seed
|
||||
FROM ' . CONFIRM_TABLE . "
|
||||
WHERE session_id = '" . $db->sql_escape($user->session_id) . "'
|
||||
AND confirm_id = '" . $db->sql_escape($confirm_id) . "'
|
||||
@@ -64,7 +64,7 @@ class ucp_confirm
|
||||
}
|
||||
|
||||
$captcha = new captcha();
|
||||
$captcha->execute($row['code']);
|
||||
$captcha->execute($row['code'], $row['seed']);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user