mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/security/247] Disable loading of local files on client side
SECURITY-247
This commit is contained in:
parent
0a5d167441
commit
4555817a8b
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ class mysqli extends \phpbb\db\driver\mysql_base
|
||||||
|
|
||||||
if ($this->db_connect_id && $this->dbname != '')
|
if ($this->db_connect_id && $this->dbname != '')
|
||||||
{
|
{
|
||||||
|
// Disable loading local files on client side
|
||||||
|
@mysqli_options($this->db_connect_id, MYSQLI_OPT_LOCAL_INFILE, false);
|
||||||
|
|
||||||
@mysqli_query($this->db_connect_id, "SET NAMES 'utf8'");
|
@mysqli_query($this->db_connect_id, "SET NAMES 'utf8'");
|
||||||
|
|
||||||
// enforce strict mode on databases that support it
|
// enforce strict mode on databases that support it
|
||||||
|
|
Loading…
Add table
Reference in a new issue