mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05: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:
parent
2e7ed15579
commit
4ca070d108
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue