Browse Source

bugfix dns settings

andre 2 years ago
parent
commit
f34e51aebe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kerioEmail_mx.php

+ 1 - 1
kerioEmail_mx.php

@@ -112,7 +112,7 @@ function KerioEmail_setSPF($params)
 
 
         if(!$record->type === 'TXT'){
         if(!$record->type === 'TXT'){
             array_push($zoneRecords, $record);
             array_push($zoneRecords, $record);
-        } elseif (!preg_match("#^v=spf(.*)$#i", $record->rdata->txtdata)) {
+        } elseif (!preg_match('/^v=spf(.*)$/i', $record->rdata->txtdata)) {
             logModuleCall(
             logModuleCall(
                 'kerioEmail',
                 'kerioEmail',
                 __FUNCTION__,
                 __FUNCTION__,