mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
diagnosis: be more robust when diagnosis DMARC records not containing '='
This commit is contained in:
parent
8b56983171
commit
d376677db6
1 changed files with 3 additions and 1 deletions
|
@ -217,7 +217,9 @@ class MyDiagnoser(Diagnoser):
|
|||
}
|
||||
if "v=DMARC1" in r["value"]:
|
||||
for param in current:
|
||||
key, value = param.split("=")
|
||||
if "=" not in param:
|
||||
return False
|
||||
key, value = param.split("=", 1)
|
||||
if key == "p":
|
||||
return value in ["none", "quarantine", "reject"]
|
||||
return expected == current
|
||||
|
|
Loading…
Add table
Reference in a new issue