1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 15:16:16 +02:00

Merge remote-tracking branch 'bantu/ticket/12711' into develop-ascraeus

* bantu/ticket/12711:
  [ticket/12711] Cast values to string such that they are quoted in SQL queries.
This commit is contained in:
Cesar G 2014-06-14 17:41:38 -07:00
commit 44269b3660

View File

@ -105,8 +105,8 @@ class db_text
if (!$this->db->sql_affectedrows($result))
{
$sql = 'INSERT INTO ' . $this->table . ' ' . $this->db->sql_build_array('INSERT', array(
'config_name' => $key,
'config_value' => $value,
'config_name' => (string) $key,
'config_value' => (string) $value,
));
$this->db->sql_query($sql);
}