post_activity_item issues

This commit is contained in:
friendica
2013-12-07 23:29:26 -08:00
parent d6d6387a7b
commit b8454cbd1d
3 changed files with 29 additions and 5 deletions

View File

@@ -75,6 +75,8 @@ function aes_encapsulate($data,$pubkey) {
}
function crypto_unencapsulate($data,$prvkey) {
if(! $data)
return;
$alg = ((array_key_exists('alg',$data)) ? $data['alg'] : 'aes256cbc');
if($alg === 'aes256cbc')
return aes_unencapsulate($data,$prvkey);