FRITZBOX: bugfix - replacement of control codes in json string

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12213 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
grompo 2016-09-26 19:04:05 +00:00
parent b8c7ae3b6d
commit 763aa36d67

View File

@ -4498,7 +4498,7 @@ sub FRITZBOX_Web_Query($$@)
my $jsonText = $response->content; my $jsonText = $response->content;
# Remove illegal escape sequences # Remove illegal escape sequences
$jsonText =~ s/\\'/'/g; #Hochkomma $jsonText =~ s/\\'/'/g; #Hochkomma
$jsonText =~ s/\\[\x{1}-\x{f}]//g; #Hex nummer $jsonText =~ s/\\x\{[0-9a-f]\}//g; #steuerzeichen (als Hex nummer) löschen
my $jsonResult ; my $jsonResult ;
if ($charSet eq "UTF-8") { if ($charSet eq "UTF-8") {