mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 16:05:19 +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:
parent
1678a29175
commit
3c11d15fad
@ -408,7 +408,6 @@ my $dbrep_fName = $attr{global}{modpath}."/FHEM/FhemUtils/cacheDbR
|
||||
|
||||
|
||||
|
||||
|
||||
###################################################################################
|
||||
# DbRep_Initialize
|
||||
###################################################################################
|
||||
@ -1212,6 +1211,7 @@ sub _DbRep_sqlFormOnline {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user