mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16985] Fix MYSQLi bug - Incorrect string value for non-BMP chars
PHPBB3-16985
This commit is contained in:
parent
7a034a8c1e
commit
18a63b6d7d
1 changed files with 4 additions and 1 deletions
|
@ -331,7 +331,10 @@ class mysqli extends \phpbb\db\driver\mysql_base
|
||||||
*/
|
*/
|
||||||
function sql_escape($msg)
|
function sql_escape($msg)
|
||||||
{
|
{
|
||||||
return @mysqli_real_escape_string($this->db_connect_id, $msg);
|
return @mysqli_real_escape_string(
|
||||||
|
$this->db_connect_id,
|
||||||
|
utf8_encode_ucr($msg)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue