diff options
| author | Cesar G <prototech91@gmail.com> | 2014-06-14 17:41:54 -0700 |
|---|---|---|
| committer | Cesar G <prototech91@gmail.com> | 2014-06-14 17:41:54 -0700 |
| commit | 13fedd4764d5699940e7f1abfc4d77447be6bdf9 (patch) | |
| tree | e7d892986e147a91230c45b7e0cb524118373451 | |
| parent | b0ab83886e730fb9d31b3247ffb9ea4758cc1b1e (diff) | |
| parent | 44269b36603d4b1bcba7355cad533f63e8f6e1dd (diff) | |
| download | forums-13fedd4764d5699940e7f1abfc4d77447be6bdf9.tar forums-13fedd4764d5699940e7f1abfc4d77447be6bdf9.tar.gz forums-13fedd4764d5699940e7f1abfc4d77447be6bdf9.tar.bz2 forums-13fedd4764d5699940e7f1abfc4d77447be6bdf9.tar.xz forums-13fedd4764d5699940e7f1abfc4d77447be6bdf9.zip | |
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus:
[ticket/12711] Cast values to string such that they are quoted in SQL queries.
| -rw-r--r-- | phpBB/phpbb/config/db_text.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/config/db_text.php b/phpBB/phpbb/config/db_text.php index fb8588334e..b1e3ef5da4 100644 --- a/phpBB/phpbb/config/db_text.php +++ b/phpBB/phpbb/config/db_text.php @@ -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); } |
