diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2017-09-08 10:54:58 +0200 | 
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2017-09-08 10:54:58 +0200 | 
| commit | 7e4498dfb542aab56cf396ca7dbc78fe0298bccc (patch) | |
| tree | bd4a59a449548a873da5d07d24634abaf6a727a9 /phpBB/phpbb/console | |
| parent | 38cbdb67688358024ea78055281d9fe0ca38c9c3 (diff) | |
| download | forums-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')
| -rw-r--r-- | phpBB/phpbb/console/command/fixup/update_hashes.php | 6 | 
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();  		} | 
