Remove owner's shared key from the answer,

not needed and a possible data leak
This commit is contained in:
Marcos Zuriaga 2016-10-02 19:42:50 +02:00
parent 1ad2745292
commit dcebd9f849
No known key found for this signature in database
GPG key ID: 7D15585354D072FF

View file

@ -99,7 +99,8 @@ class ShareService {
$return = [];
foreach ($entries as $entry){
$tmp = $entry->jsonSerialize();
$tmp['credential_data'] = $this->credential->getCredentialById($entry->getItemId());
$tmp['credential_data'] = $this->credential->getCredentialById($entry->getItemId())->jsonSerialize();
unset($tmp['credential_data']['shared_key']);
$return[] = $tmp;
}
return $return;