aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-09-07 16:24:00 +0200
committerMarc Alexander <admin@m-a-styles.de>2017-09-07 16:27:49 +0200
commit38cbdb67688358024ea78055281d9fe0ca38c9c3 (patch)
treeddf8be1454d804fc4adb72feb8d13e2cb02bb384 /phpBB/phpbb
parentfa3bdedf7bebd64336daaeff7c41b842fa098cf9 (diff)
downloadforums-38cbdb67688358024ea78055281d9fe0ca38c9c3.tar
forums-38cbdb67688358024ea78055281d9fe0ca38c9c3.tar.gz
forums-38cbdb67688358024ea78055281d9fe0ca38c9c3.tar.bz2
forums-38cbdb67688358024ea78055281d9fe0ca38c9c3.tar.xz
forums-38cbdb67688358024ea78055281d9fe0ca38c9c3.zip
[ticket/15347] Use single quotes in update hashes query
PHPBB3-15347
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/cron/task/core/update_hashes.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/cron/task/core/update_hashes.php b/phpBB/phpbb/cron/task/core/update_hashes.php
index a4fe477d99..ba095abc8b 100644
--- a/phpBB/phpbb/cron/task/core/update_hashes.php
+++ b/phpBB/phpbb/cron/task/core/update_hashes.php
@@ -111,9 +111,9 @@ class update_hashes extends \phpbb\cron\task\base
// Increase number so we know that users were selected from the database
$affected_rows++;
- $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);
}