* fix for backup.

This commit is contained in:
wangyidong
2019-01-28 15:52:17 +08:00
parent 851b4d32c1
commit 7b5768932c
+1 -1
View File
@@ -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), '/') . '/';
}
/**