2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

configDB.pm: improve filename handling

git-svn-id: https://svn.fhem.de/fhem/trunk@25836 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2022-03-14 13:19:34 +00:00
parent a97b806895
commit 564d2f6688

View File

@ -838,7 +838,7 @@ sub _cfgDB_ReadState {
sub _cfgDB_Rotate {
my ($fhem_dbh,$newversion) = @_;
my $uuid = $data{saveID};
$uuid = =~ s/^\s+|\s+$//g;
$uuid =~ s/^\s+|\s+$//g;
delete $data{saveID}; # no longer needed in memory
$configDB{loaded} = $uuid;
$fhem_dbh->do("UPDATE fhemversions SET VERSION = VERSION+1 where VERSION >= 0") if $newversion == 0;