aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-09-08 10:54:58 +0200
committerMarc Alexander <admin@m-a-styles.de>2017-09-08 10:54:58 +0200
commit7e4498dfb542aab56cf396ca7dbc78fe0298bccc (patch)
treebd4a59a449548a873da5d07d24634abaf6a727a9 /phpBB/phpbb/console/command
parent38cbdb67688358024ea78055281d9fe0ca38c9c3 (diff)
downloadforums-7e4498dfb542aab56cf396ca7dbc78fe0298bccc.tar
forums-7e4498dfb542aab56cf396ca7dbc78fe0298bccc.tar.gz
forums-7e4498dfb542aab56cf396ca7dbc78fe0298bccc.tar.bz2
forums-7e4498dfb542aab56cf396ca7dbc78fe0298bccc.tar.xz
forums-7e4498dfb542aab56cf396ca7dbc78fe0298bccc.zip
[ticket/15347] Fix query quotes in update hashes cli command
PHPBB3-15347
Diffstat (limited to 'phpBB/phpbb/console/command')
-rw-r--r--phpBB/phpbb/console/command/fixup/update_hashes.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/console/command/fixup/update_hashes.php b/phpBB/phpbb/console/command/fixup/update_hashes.php
index 4bcc3b5d19..9a0e9bc798 100644
--- a/phpBB/phpbb/console/command/fixup/update_hashes.php
+++ b/phpBB/phpbb/console/command/fixup/update_hashes.php
@@ -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));
- $sql = 'UPDATE ' . USERS_TABLE . '
- SET user_password = "' . $this->db->sql_escape($new_hash) . '"
- WHERE user_id = ' . (int) $row['user_id'];
+ $sql = 'UPDATE ' . USERS_TABLE . "
+ SET user_password = '" . $this->db->sql_escape($new_hash) . "'
+ WHERE user_id = " . (int) $row['user_id'];
$this->db->sql_query($sql);
$progress_bar->advance();
}