Save: convert ; to ;; for attr too

git-svn-id: https://svn.fhem.de/fhem/trunk@1378 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-03-24 07:30:55 +00:00
parent 1526ff95f4
commit 6cc3c38b3e

View File

@@ -1092,7 +1092,9 @@ CommandSave($$)
foreach my $a (sort keys %{$attr{$d}}) { foreach my $a (sort keys %{$attr{$d}}) {
next if($d eq "global" && next if($d eq "global" &&
($a eq "configfile" || $a eq "version")); ($a eq "configfile" || $a eq "version"));
print $fh "attr $d $a $attr{$d}{$a}\n"; my $val = $attr{$d}{$a};
$val =~ s/;/;;/g;
print $fh "attr $d $a $val\n";
} }
} }
print SFH "include $attr{global}{lastinclude}\n" print SFH "include $attr{global}{lastinclude}\n"