From f26ba6e5e6b8156d0438e1e21d44b9d5b36124ce Mon Sep 17 00:00:00 2001 From: largezhou Date: Mon, 25 Jan 2021 15:44:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20restore.php=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E5=8F=AF=E4=BB=A5=E6=89=A7=E8=A1=8C=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?SQL=E6=96=87=E4=BB=B6=E7=9A=84=E6=BC=8F=E6=B4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utility/restore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/restore.php b/utility/restore.php index 100abec1d..007bd2251 100644 --- a/utility/restore.php +++ b/utility/restore.php @@ -59,7 +59,7 @@ if($operation == 'import') { $datafile = getgpc('datafile_server', 'G'); } $datafile = urldecode($datafile); - if(@$fp = fopen($datafile, 'rb')) { + if(file_exists($datafile) && @$fp = fopen($datafile, 'rb')) { $confirm = trim(getgpc('confirm', 'G')); $confirm = $confirm ? 1 : 0; $sqldump = fgets($fp, 256); -- Gitee