PM-1497
0016743: Apostrofe en direccion de correos genera error Se agrego a la validacion en las expresiones regulares el caracter de apostrofe, teniendo como resultado el envio de email con estado "sent" ya sea por trigger, cases notes o task notifications.
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,5})+>)/';
|
$this->longMailEreg = "/(.*)(<([\w\-\.']+@[\w\-_\.]+\.\w{2,5})+>)/";
|
||||||
$this->mailEreg = '/^([\w\-_\.]+@[\w\-_\.]+\.\w{2,5}+)$/';
|
$this->mailEreg = "/^([\w\-_\.']+@[\w\-_\.]+\.\w{2,5}+)$/";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -289,7 +289,7 @@ class spoolRun
|
|||||||
*/
|
*/
|
||||||
private function handleFrom ()
|
private function handleFrom ()
|
||||||
{
|
{
|
||||||
$eregA = "/^.*@.*$/";
|
$eregA = "/^'.*@.*$/";
|
||||||
|
|
||||||
if (strpos( $this->fileData['from'], '<' ) !== false) {
|
if (strpos( $this->fileData['from'], '<' ) !== false) {
|
||||||
//to validate complex email address i.e. Erik A. O <erik@colosa.com>
|
//to validate complex email address i.e. Erik A. O <erik@colosa.com>
|
||||||
|
|||||||
Reference in New Issue
Block a user