修正在PHP 7.x.x下,由于 return mysql_escape_string(); 语句问题产生的 PHP Deprecated提示。
This commit is contained in:
parent
aa8be7ad15
commit
5e00a7a062
|
@ -212,7 +212,7 @@ class db_driver_mysql
|
|||
}
|
||||
|
||||
function escape_string($str) {
|
||||
return mysql_escape_string($str);
|
||||
return mysql_real_escape_string($str);
|
||||
}
|
||||
|
||||
function close() {
|
||||
|
|
Loading…
Reference in New Issue