From 95c2ebbf3d9d8bbc6da5eb3a1a13c4474b5c6c6e Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 30 Aug 2018 13:03:48 +0000 Subject: [PATCH] 98_JsonList2.pm: fix for the fix git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17230 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/98_JsonList2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/98_JsonList2.pm b/FHEM/98_JsonList2.pm index 5add6538b..a326e49df 100644 --- a/FHEM/98_JsonList2.pm +++ b/FHEM/98_JsonList2.pm @@ -26,8 +26,8 @@ JsonList2_Escape($) my $a = shift; return "null" if(!defined($a)); $a =~ s/([\x00-\x09\x0b-\x19\x5c])/sprintf '\u%04x', ord($1)/ge; # Forum 57377 - $a =~ s/"/\\\\"/g; - $a =~ s/\n/\\\\n/g; + $a =~ s/"/\\"/g; + $a =~ s/\n/\\n/g; my $b = "x$a"; $a = "" if(!utf8::decode($b)); # Forum #55318 return $a;