mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/15347] Use single quotes in update hashes query
PHPBB3-15347
This commit is contained in:
parent
fa3bdedf7b
commit
38cbdb6768
1 changed files with 3 additions and 3 deletions
|
@ -111,9 +111,9 @@ class update_hashes extends \phpbb\cron\task\base
|
||||||
// Increase number so we know that users were selected from the database
|
// Increase number so we know that users were selected from the database
|
||||||
$affected_rows++;
|
$affected_rows++;
|
||||||
|
|
||||||
$sql = 'UPDATE ' . USERS_TABLE . '
|
$sql = 'UPDATE ' . USERS_TABLE . "
|
||||||
SET user_password = "' . $this->db->sql_escape($new_hash) . '"
|
SET user_password = '" . $this->db->sql_escape($new_hash) . "'
|
||||||
WHERE user_id = ' . (int) $row['user_id'];
|
WHERE user_id = " . (int) $row['user_id'];
|
||||||
$this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue