We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a759d85 commit 88d8263Copy full SHA for 88d8263
extension/js/common/api/key-server/wkd.ts
@@ -29,10 +29,13 @@ export class Wkd extends Api {
29
30
public lookupEmail = async (email: string): Promise<PubkeySearchResult> => {
31
const parts = email.split('@');
32
- if (parts.length > 2) {
+ if (parts.length !== 2) {
33
return { pubkey: null, pgpClient: null };
34
}
35
const [user, recipientDomain] = parts;
36
+ if (!user || !recipientDomain) {
37
+ return { pubkey: null, pgpClient: null };
38
+ }
39
if (!opgp) {
40
// pgp_block.htm does not have openpgp loaded
41
// the particular usecase (auto-loading pubkeys to verify signatures) is not that important,
0 commit comments