1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-23 17:10:53 +01:00

Merge pull request #52 from phpbb/ticket/security/247

[ticket/security/247] Disable loading of local files on client side
This commit is contained in:
Marc Alexander 2019-08-25 18:28:56 +02:00
commit 42e278e1c3
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -68,6 +68,9 @@ class mysqli extends \phpbb\db\driver\mysql_base
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'");
// enforce strict mode on databases that support it