同步官方补丁:修复自动备份数据库问题

Signed-off-by: 小胡 <3203164629@qq.com>
This commit is contained in:
小胡
2024-07-19 12:17:10 +00:00
committed by Gitee
Unverified
parent 00854ea103
commit 2ed4fdce29

View File

@@ -199,7 +199,7 @@ function sqldumptable($table, $startfrom = 0, $currsize = 0) {
$comma = $t = '';
for($i = 0; $i < $numfields; $i++) {
$t .= $comma.($_GET['usehex'] && !empty($row[$i]) && (strexists($tablefields[$i]['Type'], 'char') || strexists($tablefields[$i]['Type'], 'text')) ? '0x'.bin2hex($row[$i]) : '\''.mysql_escape_string($row[$i]).'\'');
$t .= $comma.($_GET['usehex'] && !empty($row[$i]) && (strexists($tablefields[$i]['Type'], 'char') || strexists($tablefields[$i]['Type'], 'text')) ? '0x'.bin2hex($row[$i]) : '\''.$db->escape_string($row[$i]).'\'');
$comma = ',';
}
@@ -224,4 +224,4 @@ function sqldumptable($table, $startfrom = 0, $currsize = 0) {
return $tabledump;
}
?>
?>