diff options
author | zotlabs <mike@macgirvin.com> | 2018-11-14 18:19:35 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-11-14 18:19:35 -0800 |
commit | 4a06378d672cd355e337b2456096e76f698cf163 (patch) | |
tree | f6d95da83b3be13e928f34e611278cb1e4bce4ce /include/crypto.php | |
parent | d0f0a74df8835e54b42daf5b96e53eecc0481c71 (diff) | |
download | volse-hubzilla-4a06378d672cd355e337b2456096e76f698cf163.tar.gz volse-hubzilla-4a06378d672cd355e337b2456096e76f698cf163.tar.bz2 volse-hubzilla-4a06378d672cd355e337b2456096e76f698cf163.zip |
crypto fix
Diffstat (limited to 'include/crypto.php')
-rw-r--r-- | include/crypto.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto.php b/include/crypto.php index fc1029e55..39bfd8d43 100644 --- a/include/crypto.php +++ b/include/crypto.php @@ -225,7 +225,7 @@ function crypto_unencapsulate($data,$prvkey) { if(! $data) return; - $alg = ((is_array($data) && array_key_exists('encrypted',$data)) ? $data['alg'] : ''); + $alg = ((is_array($data) && (array_key_exists('encrypted',$data) || array_key_exists('iv',$data))) ? $data['alg'] : ''); if(! $alg) { return $data; } |