aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index aceee5f71..654b17353 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -108,10 +108,12 @@ function zot_build_packet($channel,$type = 'notify',$recipients = null, $remote_
if($secret)
$data['secret'] = $secret;
+ logger('zot_build_packet: ' . print_r($data,true));
+
// Hush-hush ultra top-secret mode
if($remote_key) {
- $data = aes_encapsulate($data,$remote_key);
+ $data = aes_encapsulate(json_encode($data),$remote_key);
}
return json_encode($data);