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:
Julio Cesar Laura
2012-11-30 16:39:12 -04:00
parent ae04f24774
commit 5e9772761c

View File

@@ -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}+)$/';
} }
/** /**