Skip to content

Commit 58d622a

Browse files
committed
Remove broken code
This has never worked, missing a '=' in `name ?` results in a query failure.
1 parent ac15a40 commit 58d622a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

interface/web/mail/mail_domain_edit.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -732,13 +732,6 @@ private function update_dns($dataRecord, $new_rr, $oldDataRecord = null) {
732732
}
733733
}
734734

735-
// also delete a dsn-records with same selector
736-
$sql = "SELECT * from dns_rr WHERE name ? AND data LIKE 'v=DKIM1%' AND " . $app->tform->getAuthSQL('r');
737-
$rec = $app->db->queryAllRecords($sql, '._domainkey.'.$dataRecord['dkim_selector'].'.', $dataRecord['domain']);
738-
if (is_array($rec))
739-
foreach ($rec as $del)
740-
$app->db->datalogDelete('dns_rr', 'id', $del['id']);
741-
742735
$new_rr['name'] = $dataRecord['dkim_selector'].'._domainkey.'.$dataRecord['domain'].'.';
743736
$new_rr['type'] = 'TXT';
744737
$new_rr['data'] = 'v=DKIM1; t=s; p='.str_replace(array('-----BEGIN PUBLIC KEY-----','-----END PUBLIC KEY-----',"\r","\n"), '', $this->dataRecord['dkim_public']);

0 commit comments

Comments
 (0)