From f2620f53ecc9e71b14501e2f5906edb18caabb5c Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 16 Jul 2021 11:45:43 +0800 Subject: [PATCH] * finish task #40292. --- module/backup/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/backup/control.php b/module/backup/control.php index 39ae5d310a..184519d4ed 100644 --- a/module/backup/control.php +++ b/module/backup/control.php @@ -336,7 +336,7 @@ class backup extends control if($statusFile) { $this->app->loadLang('extension'); - $this->view->error = sprintf($this->lang->extension->noticeOkFile, preg_replace('/^' . str_replace('/', '\\/', dirname($this->app->getBasePath()) . DS) . '/', '', $statusFile)); + $this->view->error = sprintf($this->lang->extension->noticeOkFile, str_replace(dirname($this->app->getBasePath()) . DS, '', $statusFile)); die($this->display()); }