Changeset 53500
- Timestamp:
- 06/14/2022 02:36:29 PM (2 years ago)
- Location:
- trunk/src/wp-includes/PHPMailer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/PHPMailer/PHPMailer.php
r52811 r53500 751 751 * @var string 752 752 */ 753 const VERSION = '6.6. 0';753 const VERSION = '6.6.2'; 754 754 755 755 /** … … 1067 1067 * 1068 1068 * @param string $kind One of 'to', 'cc', 'bcc', or 'ReplyTo' 1069 * @param string $address The email address to send, resp. to reply to1070 * @param string $name 1069 * @param string $address The email address 1070 * @param string $name An optional username associated with the address 1071 1071 * 1072 1072 * @throws Exception … … 1076 1076 protected function addOrEnqueueAnAddress($kind, $address, $name) 1077 1077 { 1078 $address = trim($address); 1079 $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim 1080 $pos = strrpos($address, '@'); 1078 $pos = false; 1079 if ($address !== null) { 1080 $address = trim($address); 1081 $pos = strrpos($address, '@'); 1082 } 1081 1083 if (false === $pos) { 1082 1084 //At-sign is missing. … … 1095 1097 return false; 1096 1098 } 1099 if ($name !== null) { 1100 $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim 1101 } else { 1102 $name = ''; 1103 } 1097 1104 $params = [$kind, $address, $name]; 1098 1105 //Enqueue addresses with IDN until we know the PHPMailer::$CharSet. 1106 //Domain is assumed to be whatever is after the last @ symbol in the address 1099 1107 if (static::idnSupported() && $this->has8bitChars(substr($address, ++$pos))) { 1100 1108 if ('Reply-To' !== $kind) { -
trunk/src/wp-includes/PHPMailer/SMTP.php
r52811 r53500 36 36 * @var string 37 37 */ 38 const VERSION = '6.6. 0';38 const VERSION = '6.6.2'; 39 39 40 40 /** … … 1038 1038 } 1039 1039 1040 $this->setError(''); 1040 //Don't clear the error store when using keepalive 1041 if ($command !== 'RSET') { 1042 $this->setError(''); 1043 } 1041 1044 1042 1045 return true;
Note: See TracChangeset
for help on using the changeset viewer.