Changeset 52252
- Timestamp:
- 11/26/2021 12:41:54 AM (3 years ago)
- Location:
- trunk/src/wp-includes/PHPMailer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/PHPMailer/PHPMailer.php
r51635 r52252 751 751 * @var string 752 752 */ 753 const VERSION = '6.5. 1';753 const VERSION = '6.5.3'; 754 754 755 755 /** … … 1452 1452 if (defined('INTL_IDNA_VARIANT_UTS46')) { 1453 1453 //Use the current punycode standard (appeared in PHP 7.2) 1454 $punycode = idn_to_ascii($domain, $errorcode, \INTL_IDNA_VARIANT_UTS46); 1454 $punycode = idn_to_ascii( 1455 $domain, 1456 \IDNA_DEFAULT | \IDNA_USE_STD3_RULES | \IDNA_CHECK_BIDI | 1457 \IDNA_CHECK_CONTEXTJ | \IDNA_NONTRANSITIONAL_TO_ASCII, 1458 \INTL_IDNA_VARIANT_UTS46 1459 ); 1455 1460 } elseif (defined('INTL_IDNA_VARIANT_2003')) { 1456 1461 //Fall back to this old, deprecated/removed encoding … … 1700 1705 //Qmail docs: http://www.qmail.org/man/man8/qmail-inject.html 1701 1706 //Example problem: https://www.drupal.org/node/1057954 1702 if (empty($this->Sender) && !empty(ini_get('sendmail_from'))) { 1707 1708 //PHP 5.6 workaround 1709 $sendmail_from_value = ini_get('sendmail_from'); 1710 if (empty($this->Sender) && !empty($sendmail_from_value)) { 1703 1711 //PHP config has a sender address we can use 1704 1712 $this->Sender = ini_get('sendmail_from'); … … 1882 1890 //Example problem: https://www.drupal.org/node/1057954 1883 1891 //CVE-2016-10033, CVE-2016-10045: Don't pass -f if characters will be escaped. 1884 if (empty($this->Sender) && !empty(ini_get('sendmail_from'))) { 1892 1893 //PHP 5.6 workaround 1894 $sendmail_from_value = ini_get('sendmail_from'); 1895 if (empty($this->Sender) && !empty($sendmail_from_value)) { 1885 1896 //PHP config has a sender address we can use 1886 1897 $this->Sender = ini_get('sendmail_from'); … … 2199 2210 * Optionally, the language code can be enhanced with a 4-character 2200 2211 * script annotation and/or a 2-character country annotation. 2201 * @param string $lang_path Path to the language file directory, with trailing separator (slash) .D2212 * @param string $lang_path Path to the language file directory, with trailing separator (slash) 2202 2213 * Do not set this from user input! 2203 2214 * -
trunk/src/wp-includes/PHPMailer/SMTP.php
r51634 r52252 36 36 * @var string 37 37 */ 38 const VERSION = '6.5. 1';38 const VERSION = '6.5.3'; 39 39 40 40 /** … … 393 393 $socket_context 394 394 ); 395 restore_error_handler();396 395 } else { 397 396 //Fall back to fsockopen which should work in more places, but is missing some features … … 408 407 $timeout 409 408 ); 410 restore_error_handler();411 }409 } 410 restore_error_handler(); 412 411 413 412 //Verify we connected properly … … 697 696 * Send an SMTP DATA command. 698 697 * Issues a data command and sends the msg_data to the server, 699 * fin ializing the mail transaction. $msg_data is the message698 * finalizing the mail transaction. $msg_data is the message 700 699 * that is to be send with the headers. Each header needs to be 701 700 * on a single line followed by a <CRLF> with the message headers … … 1171 1170 $this->setError('No HELO/EHLO was sent'); 1172 1171 1173 return ;1172 return null; 1174 1173 } 1175 1174 … … 1183 1182 $this->setError('HELO handshake was used; No information about server extensions available'); 1184 1183 1185 return ;1184 return null; 1186 1185 } 1187 1186
Note: See TracChangeset
for help on using the changeset viewer.