mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
74_AMADDevice: fix decode_utf8 call in eval
git-svn-id: https://svn.fhem.de/fhem/trunk@14822 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
844cf19b4f
commit
2f8987eaf8
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user