File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,14 +227,14 @@ function onSubmit() {
227227 $ domain_name = rtrim ($ soa ['origin ' ], '. ' );
228228 // DMARC requieres at least one active dkim-record...
229229 $ sql = "SELECT * FROM dns_rr WHERE name LIKE ? AND type='TXT' AND data like 'v=DKIM1;%' AND active='Y' " ;
230- $ temp = $ app ->db ->queryAllRecords ($ sql , '%._domainkey.$domain_name ' .'. ' );
231- if (! is_array ($ temp )) {
230+ $ temp = $ app ->db ->queryAllRecords ($ sql , '%._domainkey. ' . $ domain_name .'. ' );
231+ if (empty ($ temp )) {
232232 if (isset ($ app ->tform ->errorMessage )) $ app ->tform ->errorMessage = '<br/> ' . $ app ->tform ->errorMessage ;
233233 $ app ->tform ->errorMessage .= $ app ->tform ->wordbook ['dmarc_no_dkim_txt ' ].$ email ;
234234 }
235235
236236 // ... and an active spf-record (this breaks the current draft but DMARC is useless if you use DKIM or SPF
237- $ sql = "SELECT * FROM dns_rr WHERE name LIKE ? AND type='TXT' AND (data LIKE 'v=spf1; %' AND active = 'y') " ;
237+ $ sql = "SELECT * FROM dns_rr WHERE name LIKE ? AND type='TXT' AND (data LIKE 'v=spf1%' AND active = 'y') " ;
238238 $ temp = $ app ->db ->queryAllRecords ($ sql , $ domain_name .'. ' );
239239 // abort if more than 1 active spf-records (backward-compatibility)
240240 if (is_array ($ temp [1 ])) {
You can’t perform that action at this time.
0 commit comments