mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15347] Fix query quotes in update hashes cli command
PHPBB3-15347
This commit is contained in:
parent
38cbdb6768
commit
7e4498dfb5
1 changed files with 3 additions and 3 deletions
|
@ -101,9 +101,9 @@ class update_hashes extends \phpbb\console\command\command
|
||||||
{
|
{
|
||||||
$new_hash = $this->passwords_manager->hash($row['user_password'], array($this->default_type));
|
$new_hash = $this->passwords_manager->hash($row['user_password'], array($this->default_type));
|
||||||
|
|
||||||
$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);
|
||||||
$progress_bar->advance();
|
$progress_bar->advance();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue