mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Update Sftp.php (#4820)
Fixed an issue where SFTP backup would not be able to list remote backups if hostname was prefixed and hostname or domain had uppercase characters.
This commit is contained in:
@@ -236,7 +236,7 @@ class Sftp extends Base implements IBackupProvider
|
||||
$fileprefix = "config-";
|
||||
} else {
|
||||
$config = $cnf->object();
|
||||
$fileprefix = sprintf('%s.%s-', (string)$config->system->hostname, (string)$config->system->domain);
|
||||
$fileprefix = strtolower(sprintf('%s.%s-', (string)$config->system->hostname, (string)$config->system->domain));
|
||||
}
|
||||
/**
|
||||
* Collect most recent backup, since /conf/backup/ always contains the latests, we can use the filename
|
||||
|
||||
Reference in New Issue
Block a user