mirror of
https://github.com/nextcloud/passman.git
synced 2025-01-19 05:37:44 +08:00
Remove owner's shared key from the answer,
not needed and a possible data leak
This commit is contained in:
parent
1ad2745292
commit
dcebd9f849
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue