From 2f8987eaf888af8ea5218810b4bb6f5d4e2eb021 Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Mon, 31 Jul 2017 07:53:41 +0000 Subject: [PATCH] 74_AMADDevice: fix decode_utf8 call in eval git-svn-id: https://svn.fhem.de/fhem/trunk@14822 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/74_AMADDevice.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 623088536..f03687402 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 74_AMADDevice: fix decode_utf8 call in eval - feature: 57_Calendar: reduce memory footprint (forum #74481) - bugfix: 74_AMADDevice: fix openurl bug - bugfix: 49_SSCam: "uninitialized value in pattern ..." on fhem start diff --git a/fhem/FHEM/74_AMADDevice.pm b/fhem/FHEM/74_AMADDevice.pm index 795d1f1b0..244da3ca6 100644 --- a/fhem/FHEM/74_AMADDevice.pm +++ b/fhem/FHEM/74_AMADDevice.pm @@ -54,7 +54,7 @@ eval "use Encode qw(encode encode_utf8);1" or $missingModul .= "Encode "; eval "use JSON;1" or $missingModul .= "JSON "; -my $modulversion = "4.0.2"; +my $modulversion = "4.0.3"; my $flowsetversion = "4.0.0"; @@ -782,7 +782,7 @@ sub AMADDevice_Parse($$) { my $name = $io_hash->{NAME}; - my $decode_json = eval{decode_json(encode_utf8($json))}; + my $decode_json = eval{decode_json($json)}; if($@){ Log3 $name, 3, "AMADDevice ($name) - JSON error while request: $@"; return;