Fixes #441: Correct DMARC entry syntax

This commit is contained in:
Kienan Stewart 2020-11-13 14:51:48 -05:00 committed by Camille Lafitte
parent 6a3af13817
commit 40fed101e3
1 changed files with 1 additions and 1 deletions

View File

@ -1124,7 +1124,7 @@ ORDER BY
*/
function del_dns_dmarc($domain) {
global $db;
$db->query("UPDATE sub_domaines SET web_action='DELETE' WHERE domaine= ? AND type='txt' AND sub='_dmarc';", array($domain));
$db->query("UPDATE sub_domaines SET web_action='DELETE' WHERE domaine= ? AND type='txt' AND sub='_dmarc' AND valeur LIKE lower('v=DMARC1;%');", array($domain));
}