xmllist fixes

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@89 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2007-09-08 11:15:40 +00:00
parent 2f72e98da6
commit 2f34bd7420
2 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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/</&lt;/g;
$a =~ s/>/&gt;/g;
$a =~ s/<EFBFBD>/&#b0;/g;
$a =~ s/([^ -~])/sprintf("#%02x;", ord($1))/ge;
return $a;
}