mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16346] More fixes
PHPBB3-16346
This commit is contained in:
@@ -235,7 +235,7 @@ abstract class captcha_abstract
|
||||
global $db, $user;
|
||||
|
||||
$this->code = gen_rand_string_friendly(mt_rand(CAPTCHA_MIN_CHARS, CAPTCHA_MAX_CHARS));
|
||||
$this->confirm_id = md5(unique_id($user->ip));
|
||||
$this->confirm_id = md5(unique_id());
|
||||
$this->seed = hexdec(substr(unique_id(), 4, 10));
|
||||
$this->solved = 0;
|
||||
// compute $seed % 0x7fffffff
|
||||
|
@@ -442,7 +442,7 @@ class qa
|
||||
{
|
||||
return;
|
||||
}
|
||||
$this->confirm_id = md5(unique_id($user->ip));
|
||||
$this->confirm_id = md5(unique_id());
|
||||
$this->question = (int) array_rand($this->question_ids);
|
||||
|
||||
$sql = 'INSERT INTO ' . $this->table_qa_confirm . ' ' . $db->sql_build_array('INSERT', array(
|
||||
|
Reference in New Issue
Block a user