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:
marcelo.cuiza
2015-02-12 10:05:30 -04:00
parent 987a8ffbad
commit 632f199d84

View File

@@ -86,8 +86,8 @@ class spoolRun
$this->ExceptionCode['WARNING'] = 2;
$this->ExceptionCode['NOTICE'] = 3;
$this->longMailEreg = '/(.*)(<([\w\-\.]+@[\w\-_\.]+\.\w{2,5})+>)/';
$this->mailEreg = '/^([\w\-_\.]+@[\w\-_\.]+\.\w{2,5}+)$/';
$this->longMailEreg = "/(.*)(<([\w\-\.']+@[\w\-_\.]+\.\w{2,5})+>)/";
$this->mailEreg = "/^([\w\-_\.']+@[\w\-_\.]+\.\w{2,5}+)$/";
}
/**
@@ -289,7 +289,7 @@ class spoolRun
*/
private function handleFrom ()
{
$eregA = "/^.*@.*$/";
$eregA = "/^'.*@.*$/";
if (strpos( $this->fileData['from'], '<' ) !== false) {
//to validate complex email address i.e. Erik A. O <erik@colosa.com>