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), '/') . '/'; } /**