mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16870] Ensure to properly escape values when running db:migrate
PHPBB3-16870
This commit is contained in:
parent
8c25f3a9f7
commit
bbcac37e30
1 changed files with 2 additions and 2 deletions
|
@ -170,8 +170,8 @@ class db extends config
|
|||
if (!isset($this->config[$key]))
|
||||
{
|
||||
$sql = 'INSERT INTO ' . $this->table . ' ' . $this->db->sql_build_array('INSERT', array(
|
||||
'config_name' => $key,
|
||||
'config_value' => $new_value,
|
||||
'config_name' => $this->db->sql_escape($key),
|
||||
'config_value' => $this->db->sql_escape($new_value),
|
||||
'is_dynamic' => ($use_cache) ? 0 : 1));
|
||||
$this->db->sql_query($sql);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue