From " to '
This commit is contained in:
parent
348af5ca3d
commit
ba42169397
@ -21,7 +21,7 @@ class Database extends Module {
|
|||||||
|
|
||||||
# Avoid sql injection on older MySQL versions by using GBK
|
# Avoid sql injection on older MySQL versions by using GBK
|
||||||
if ($database->server_version<50500) $database->set_charset('GBK');
|
if ($database->server_version<50500) $database->set_charset('GBK');
|
||||||
else $database->set_charset("utf8");
|
else $database->set_charset('utf8');
|
||||||
|
|
||||||
# Set unicode
|
# Set unicode
|
||||||
$database->query('SET NAMES utf8;');
|
$database->query('SET NAMES utf8;');
|
||||||
|
Loading…
Reference in New Issue
Block a user