Skip to content

Commit d423738

Browse files
committed
Fixed: FS#2304 - Users spamfilters are not deleted when deleting a domain
1 parent c8437e8 commit d423738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/mail/mail_domain_del.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function onBeforeDelete() {
7878
}
7979

8080
// Delete all spamfilters that belong to this domain
81-
$records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email = '@".$app->db->quote($domain)."'");
81+
$records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email = '%@".$app->db->quote($domain)."'");
8282
foreach($records as $rec) {
8383
$app->db->datalogDelete('spamfilter_users','id',$rec['id']);
8484
}

0 commit comments

Comments
 (0)