2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 09:55:38 +00:00

93_DbRep: contrib 8.51.0

git-svn-id: https://svn.fhem.de/fhem/trunk@26955 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2023-01-03 19:45:11 +00:00
parent 1678a29175
commit 3c11d15fad

View File

@ -408,7 +408,6 @@ my $dbrep_fName = $attr{global}{modpath}."/FHEM/FhemUtils/cacheDbR
###################################################################################
# DbRep_Initialize
###################################################################################
@ -1210,8 +1209,9 @@ sub _DbRep_sqlFormOnline {
my @cmds = split ';', $sqlcmd;
my $newcmd;
for my $part (@cmds) {
$part = urlEncode ($part);
my ($err, $dat) = HttpUtils_BlockingGet ({ url => $fs,
timeout => 5,
data => "reindent=1&sql=$part",
@ -1227,7 +1227,7 @@ sub _DbRep_sqlFormOnline {
return $sqlcmd;
}
else {
my ($success, $decoded) = evalDecodeJSON ($hash, $dat);
my ($success, $decoded) = evalDecodeJSON ($hash, urlDecode ($dat));
my $res = $decoded->{result};
next if(!$res);