From 7b5768932c13f32f833efe19264f48ee1db47735 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 28 Jan 2019 15:52:17 +0800 Subject: [PATCH] * fix for backup. --- module/backup/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/backup/model.php b/module/backup/model.php index 9cabd4e649..f275209f1c 100644 --- a/module/backup/model.php +++ b/module/backup/model.php @@ -284,7 +284,7 @@ class backupModel extends model public function getBackupPath() { $backupPath = empty($this->config->backup->settingDir) ? $this->app->getTmpRoot() . 'backup' . DS : $this->config->backup->settingDir; - return trim(str_replace('\\', '/', $backupPath), '/') . '/'; + return rtrim(str_replace('\\', '/', $backupPath), '/') . '/'; } /**