From 011bba994827e048693e69dcd979b993011d17e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= Date: Sun, 30 Jan 2022 22:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=A4=87=E4=BB=BD=20API=20=E5=88=97=E8=A1=A8=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=20Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/api/db/dbbak.php | 2 +- upload/uc_server/api/dbbak.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/api/db/dbbak.php b/upload/api/db/dbbak.php index 6885d413a..47a0aac1b 100644 --- a/upload/api/db/dbbak.php +++ b/upload/api/db/dbbak.php @@ -562,7 +562,7 @@ if($get['method'] == 'export') { $directory = dir(BACKUP_DIR); while($entry = $directory->read()) { $filename = BACKUP_DIR.$entry; - if(is_dir($filename) && preg_match('/^backup_(\d+)_\w+$/', $filename, $match)) { + if(is_dir($filename) && preg_match('/^backup_(\d+)_\w+$/', $entry, $match)) { $str .= "\t\n"; $str .= "\t\t$filename\n"; $str .= "\t\t$match[1]\n"; diff --git a/upload/uc_server/api/dbbak.php b/upload/uc_server/api/dbbak.php index 42b2aa53e..e5b4e46b3 100644 --- a/upload/uc_server/api/dbbak.php +++ b/upload/uc_server/api/dbbak.php @@ -558,7 +558,7 @@ if($get['method'] == 'export') { $directory = dir(BACKUP_DIR); while($entry = $directory->read()) { $filename = BACKUP_DIR.$entry; - if(is_dir($filename) && preg_match('/^backup_(\d+)_\w+$/', $filename, $match)) { + if(is_dir($filename) && preg_match('/^backup_(\d+)_\w+$/', $entry, $match)) { $str .= "\t\n"; $str .= "\t\t$filename\n"; $str .= "\t\t$match[1]\n"; -- Gitee