Changeset 53917
- Timestamp:
- 08/22/2022 12:24:30 PM (2 years ago)
- Location:
- trunk/src/wp-includes/PHPMailer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/PHPMailer/PHPMailer.php
r53535 r53917 351 351 352 352 /** 353 * SMTP auth type.354 * Options are CRAM-MD5, LOGIN, PLAIN, XOAUTH2, attempted in that order if not specified.353 * SMTP authentication type. Options are CRAM-MD5, LOGIN, PLAIN, XOAUTH2. 354 * If not specified, the first one from that list that the server supports will be selected. 355 355 * 356 356 * @var string … … 751 751 * @var string 752 752 */ 753 const VERSION = '6.6. 3';753 const VERSION = '6.6.4'; 754 754 755 755 /** … … 1097 1097 return false; 1098 1098 } 1099 if ($name !== null ) {1099 if ($name !== null && is_string($name)) { 1100 1100 $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim 1101 1101 } else { … … 1289 1289 public function setFrom($address, $name = '', $auto = true) 1290 1290 { 1291 $address = trim( $address);1291 $address = trim((string)$address); 1292 1292 $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim 1293 1293 //Don't validate now addresses with IDN. Will be done in send(). … … 1894 1894 $toArr[] = $this->addrFormat($toaddr); 1895 1895 } 1896 $to = implode(', ', $toArr); 1896 $to = trim(implode(', ', $toArr)); 1897 1898 //If there are no To-addresses (e.g. when sending only to BCC-addresses) 1899 //the following should be added to get a correct DKIM-signature. 1900 //Compare with $this->preSend() 1901 if ($to === '') { 1902 $to = 'undisclosed-recipients:;'; 1903 } 1897 1904 1898 1905 $params = null; … … 4473 4480 'xml' => 'text/xml', 4474 4481 'xsl' => 'text/xml', 4482 'csv' => 'text/csv', 4475 4483 'wmv' => 'video/x-ms-wmv', 4476 4484 'mpeg' => 'video/mpeg', -
trunk/src/wp-includes/PHPMailer/SMTP.php
r53535 r53917 36 36 * @var string 37 37 */ 38 const VERSION = '6.6. 3';38 const VERSION = '6.6.4'; 39 39 40 40 /**
Note: See TracChangeset
for help on using the changeset viewer.