diff options
author | zotlabs <mike@macgirvin.com> | 2020-01-29 14:29:06 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2020-01-29 14:29:06 -0800 |
commit | 3df5d854b8935b11c67893bbbd24cdf8829eda00 (patch) | |
tree | b206e3050ed8bb54022f3e7c1be105903274febb /Zotlabs/Lib/Libzot.php | |
parent | f123809d29d6cc335251cd4fd8984c1b5ef67e2a (diff) | |
download | volse-hubzilla-3df5d854b8935b11c67893bbbd24cdf8829eda00.tar.gz volse-hubzilla-3df5d854b8935b11c67893bbbd24cdf8829eda00.tar.bz2 volse-hubzilla-3df5d854b8935b11c67893bbbd24cdf8829eda00.zip |
z6 transition work - prevent z6 sync packets from being unpacked into an incompatible schema
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index ad00aa97a..bb70dfbf2 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1277,7 +1277,12 @@ class Libzot { logger('Channel sync received: ' . print_r($arr,true), LOGGER_DATA, LOG_DEBUG); logger('Channel sync recipients: ' . print_r($deliveries,true), LOGGER_DATA, LOG_DEBUG); - $result = Libsync::process_channel_sync_delivery($env['sender'],$arr,$deliveries); + if ($env['encoding'] === 'hz') { + $result = Libsync::process_channel_sync_delivery($env['sender'],$arr,$deliveries); + } + else { + logger('sync packet type not supported.'); + } } } if ($result) { |