diff --git a/changelog.md b/changelog.md index 697f7a14..a9e31d90 100644 --- a/changelog.md +++ b/changelog.md @@ -3,9 +3,14 @@ * Added Tagalog translation, thanks to @StoneArtz * Updated Hungarian translations * Updated Dutch translations +* Updated Slovenian translation (@filips123) +* Updated Italian translation (@sabas) +* Updated Norwegian translation (@aleskr) +* Updated Indonesian translation (@mylastof) * Add constants for common values, such as `text/html` and `quoted-printable`, and use them * Added support for copied headers in DKIM, helping with debugging, and an option to add extra headers to the DKIM signature. See DKIM_sign example for how to use them. Thanks to @gwi-mmuths. * Add Campaign Monitor transaction ID pattern matcher +* Remove deprecated constant and ini values causing warnings in PHP 7.3. ## Version 6.0.5 (March 27th 2018) * Re-roll of 6.0.4 to fix missed version file entry. No code changes. diff --git a/src/PHPMailer.php b/src/PHPMailer.php index 07466a49..93b8ff1b 100644 --- a/src/PHPMailer.php +++ b/src/PHPMailer.php @@ -1996,6 +1996,7 @@ class PHPMailer 'no' => 'nb', 'se' => 'sv', 'sr' => 'rs', + 'tg' => 'tl', ]; if (isset($renamed_langcodes[$langcode])) { @@ -3628,7 +3629,7 @@ class PHPMailer //Is it a valid IPv4 address? return (bool) filter_var($host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4); } - if (filter_var('http://' . $host, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED)) { + if (filter_var('http://' . $host, FILTER_VALIDATE_URL)) { //Is it a syntactically valid hostname? return true; }