2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

69_SoftliqCloud.pm: Remove remaining "garbage"

git-svn-id: https://svn.fhem.de/fhem/trunk@24230 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
KernSani 2021-04-12 20:54:12 +00:00
parent e37817c3e2
commit 0bd0aa78d8

View File

@ -21,6 +21,7 @@
#
##############################################################################
# Changelog:
# 0.1.04: ANother fix to avoid "garbage" in JSON
# 0.1.03: Improve error handling
# Hide access- & refreshToken
# 0.1.02: Suppress Log message "opening device..."
@ -51,7 +52,7 @@ use utf8;
use Digest::MD5 qw(md5);
my $version = "0.1.03";
my $version = "0.1.04";
my $missingModul = '';
eval 'use MIME::Base64::URLSafe;1' or $missingModul .= 'MIME::Base64::URLSafe ';
@ -1937,6 +1938,9 @@ sub wsReadDevIo {
}
$buf =~ s///xsm;
$buf =~ s/\\x\{1e\}//xsm;
if (!($buf =~ /}$/xsm)) {
$buf = substr($buf, 0, rindex($buf,"}"));
}
if ( length($buf) == 0 ) {
return;
}