BUG 7429 Error when testing e-mail configuration with local Exchange 2007 SOLVED
- PCRE expression was too restrictive to tld with 2 or 3 characters - Now is valid 2, 3, 4 or 5 characters
This commit is contained in:
@@ -86,8 +86,8 @@ class spoolRun
|
|||||||
$this->ExceptionCode['WARNING'] = 2;
|
$this->ExceptionCode['WARNING'] = 2;
|
||||||
$this->ExceptionCode['NOTICE'] = 3;
|
$this->ExceptionCode['NOTICE'] = 3;
|
||||||
|
|
||||||
$this->longMailEreg = '/(.*)(<([\w\-\.]+@[\w\-_\.]+\.\w{2,3})+>)/';
|
$this->longMailEreg = '/(.*)(<([\w\-\.]+@[\w\-_\.]+\.\w{2,5})+>)/';
|
||||||
$this->mailEreg = '/^([\w\-_\.]+@[\w\-_\.]+\.\w{2,3}+)$/';
|
$this->mailEreg = '/^([\w\-_\.]+@[\w\-_\.]+\.\w{2,5}+)$/';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -542,10 +542,10 @@ class spoolRun
|
|||||||
|
|
||||||
if ($aConfiguration["MESS_ENABLED"] == "1") {
|
if ($aConfiguration["MESS_ENABLED"] == "1") {
|
||||||
require_once ("classes/model/AppMessage.php");
|
require_once ("classes/model/AppMessage.php");
|
||||||
if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) {
|
if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) {
|
||||||
$aConfiguration['MESS_RAUTH'] = 0;
|
$aConfiguration['MESS_RAUTH'] = 0;
|
||||||
} else {
|
} else {
|
||||||
$aConfiguration['MESS_RAUTH'] = 1;
|
$aConfiguration['MESS_RAUTH'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setConfig( array ("MESS_ENGINE" => $aConfiguration["MESS_ENGINE"],"MESS_SERVER" => $aConfiguration["MESS_SERVER"],"MESS_PORT" => $aConfiguration["MESS_PORT"],"MESS_ACCOUNT" => $aConfiguration["MESS_ACCOUNT"],"MESS_PASSWORD" => $aConfiguration["MESS_PASSWORD"],"SMTPAuth" => $aConfiguration["MESS_RAUTH"],"SMTPSecure" => $aConfiguration["SMTPSecure"]
|
$this->setConfig( array ("MESS_ENGINE" => $aConfiguration["MESS_ENGINE"],"MESS_SERVER" => $aConfiguration["MESS_SERVER"],"MESS_PORT" => $aConfiguration["MESS_PORT"],"MESS_ACCOUNT" => $aConfiguration["MESS_ACCOUNT"],"MESS_PASSWORD" => $aConfiguration["MESS_PASSWORD"],"SMTPAuth" => $aConfiguration["MESS_RAUTH"],"SMTPSecure" => $aConfiguration["SMTPSecure"]
|
||||||
|
|||||||
Reference in New Issue
Block a user