mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-22 15:58:47 +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 }
|
{ reason: authorityError, value: authorityValue, status: authorityStatus }
|
||||||
] = await Promise.allSettled([this.getBimiData(bimiData.location, 'location'), this.getBimiData(bimiData.authority, 'authority')]);
|
] = await Promise.allSettled([this.getBimiData(bimiData.location, 'location'), this.getBimiData(bimiData.authority, 'authority')]);
|
||||||
|
|
||||||
if (locationError) {
|
|
||||||
throw locationError;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (authorityError) {
|
if (authorityError) {
|
||||||
throw authorityError;
|
throw authorityError;
|
||||||
}
|
}
|
||||||
|
@ -460,6 +456,11 @@ class BimiHandler {
|
||||||
return authorityValue;
|
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;
|
return locationStatus === 'fulfilled' && locationValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue