mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-10 17:47:07 +08:00
Skip BIMI SVG errors if VMC validation succeeded
This commit is contained in:
parent
f401957c68
commit
9c61d147df
1 changed files with 5 additions and 4 deletions
|
@ -391,10 +391,6 @@ class BimiHandler {
|
|||
{ reason: authorityError, value: authorityValue, status: authorityStatus }
|
||||
] = await Promise.allSettled([this.getBimiData(bimiData.location, 'location'), this.getBimiData(bimiData.authority, 'authority')]);
|
||||
|
||||
if (locationError) {
|
||||
throw locationError;
|
||||
}
|
||||
|
||||
if (authorityError) {
|
||||
throw authorityError;
|
||||
}
|
||||
|
@ -460,6 +456,11 @@ class BimiHandler {
|
|||
return authorityValue;
|
||||
}
|
||||
|
||||
// If signed VMC was ok, then ignore any errors from regular SVG as this would not be used anyway
|
||||
if (locationError) {
|
||||
throw locationError;
|
||||
}
|
||||
|
||||
return locationStatus === 'fulfilled' && locationValue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue