diff --git a/CHANGED b/CHANGED index f333df9cf..04a023234 100644 --- a/CHANGED +++ b/CHANGED @@ -342,3 +342,4 @@ - ==DATE== (4.2) - feature: added archivedir/archivecmd to the the main logfile - feature: 99_Sunrise_EL.pm (does not need any Date modules) + - bugfix: Seldom xmllist error resulting in corrupt xml (Martin/Peter, 4.9) diff --git a/fhem.pl b/fhem.pl index 79d49c5ad..b8fbf7b44 100755 --- a/fhem.pl +++ b/fhem.pl @@ -134,7 +134,7 @@ my %intAt; # Internal at timer hash. my $intAtCnt=0; my $reread_active = 0; my $AttrList = "room comment"; -my $cvsid = '$Id: fhem.pl,v 1.23 2007-08-06 18:17:28 rudolfkoenig Exp $'; +my $cvsid = '$Id: fhem.pl,v 1.24 2007-09-08 11:15:40 rudolfkoenig Exp $'; $init_done = 0; @@ -1064,7 +1064,7 @@ XmlEscape($) $a =~ s/"/"/g; $a =~ s//>/g; - $a =~ s/°/&#b0;/g; + $a =~ s/([^ -~])/sprintf("#%02x;", ord($1))/ge; return $a; }