From 2ed4fdce2928221bfe34a182d8729441a1936658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=83=A1?= <3203164629@qq.com> Date: Fri, 19 Jul 2024 12:17:10 +0000 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=AE=98=E6=96=B9=E8=A1=A5?= =?UTF-8?q?=E4=B8=81=EF=BC=9A=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8=E5=A4=87?= =?UTF-8?q?=E4=BB=BD=E6=95=B0=E6=8D=AE=E5=BA=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小胡 <3203164629@qq.com> --- core/cron/cron_database_backup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/cron/cron_database_backup.php b/core/cron/cron_database_backup.php index 1ca54a9..93f16d8 100644 --- a/core/cron/cron_database_backup.php +++ b/core/cron/cron_database_backup.php @@ -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; } -?> +?> \ No newline at end of file