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 64b81c105c
commit aeab5aaa15

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;
}