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