mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Don't return Text and Signature when verified.
This commit is contained in:
parent
b8d898bc8a
commit
7ef1a8f14a
1 changed files with 11 additions and 8 deletions
|
|
@ -727,14 +727,17 @@ trait Messages
|
||||||
// GNUPG_SIGSUM_TOFU_CONFLICT = 'A TOFU conflict was detected.',
|
// GNUPG_SIGSUM_TOFU_CONFLICT = 'A TOFU conflict was detected.',
|
||||||
];
|
];
|
||||||
|
|
||||||
$result['Result'] = [
|
// Verified, so no need to return $result['Text'] and $result['Signature']
|
||||||
'fingerprint' => $info['fingerprint'],
|
$result = [
|
||||||
'validity' => $info['validity'],
|
'Result' => [
|
||||||
'status' => $info['status'],
|
'fingerprint' => $info['fingerprint'],
|
||||||
'summary' => $info['summary'],
|
'validity' => $info['validity'],
|
||||||
'message' => \implode("\n", \array_filter($summary, function($k) use ($info) {
|
'status' => $info['status'],
|
||||||
return $info['summary'] & $k;
|
'summary' => $info['summary'],
|
||||||
}, ARRAY_FILTER_USE_KEY))
|
'message' => \implode("\n", \array_filter($summary, function($k) use ($info) {
|
||||||
|
return $info['summary'] & $k;
|
||||||
|
}, ARRAY_FILTER_USE_KEY))
|
||||||
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue