Skip to content

Commit

Permalink
Merge branch 'staging' into 3.x-jversion
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Apr 25, 2019
2 parents 1ea122b + f073867 commit 1bac885
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libraries/src/Mail/Mail.php
Expand Up @@ -64,6 +64,17 @@ public function __construct($exceptions = true)

// Don't disclose the PHPMailer version
$this->XMailer = ' ';

/*
* PHPMailer 5.2 can't validate e-mail addresses with the new regex library used in PHP 7.3+
* Setting $validator to "php" uses the native php function filter_var
*
* @see https://github.com/joomla/joomla-cms/issues/24707
*/
if (version_compare(PHP_VERSION, '7.3.0', '>='))
{
\PHPMailer::$validator = 'php';
}
}

/**
Expand Down

0 comments on commit 1bac885

Please sign in to comment.