Changeset 52749
- Timestamp:
- 02/17/2022 01:21:44 PM (3 years ago)
- Location:
- trunk/src/wp-includes/PHPMailer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/PHPMailer/PHPMailer.php
r52252 r52749 751 751 * @var string 752 752 */ 753 const VERSION = '6.5. 3';753 const VERSION = '6.5.4'; 754 754 755 755 /** … … 1186 1186 * @param string $addrstr The address list string 1187 1187 * @param bool $useimap Whether to use the IMAP extension to parse the list 1188 * @param string $charset The charset to use when decoding the address list string. 1188 1189 * 1189 1190 * @return array … … 1745 1746 fwrite($mail, $body); 1746 1747 $result = pclose($mail); 1747 $addrinfo = static::parseAddresses($toAddr, true, $this-> charSet);1748 $addrinfo = static::parseAddresses($toAddr, true, $this->CharSet); 1748 1749 $this->doCallback( 1749 1750 ($result === 0), … … 1800 1801 protected static function isShellSafe($string) 1801 1802 { 1802 //Future-proof 1803 //It's not possible to use shell commands safely (which includes the mail() function) without escapeshellarg, 1804 //but some hosting providers disable it, creating a security problem that we don't want to have to deal with, 1805 //so we don't. 1806 if (!function_exists('escapeshellarg') || !function_exists('escapeshellcmd')) { 1807 return false; 1808 } 1809 1803 1810 if ( 1804 1811 escapeshellcmd($string) !== $string … … 1908 1915 foreach ($toArr as $toAddr) { 1909 1916 $result = $this->mailPassthru($toAddr, $this->Subject, $body, $header, $params); 1910 $addrinfo = static::parseAddresses($toAddr, true, $this-> charSet);1917 $addrinfo = static::parseAddresses($toAddr, true, $this->CharSet); 1911 1918 $this->doCallback( 1912 1919 $result, … … 2633 2640 } 2634 2641 if ('' === $this->XMailer) { 2642 //Empty string for default X-Mailer header 2635 2643 $result .= $this->headerLine( 2636 2644 'X-Mailer', 2637 2645 'PHPMailer ' . self::VERSION . ' (https://github.com/PHPMailer/PHPMailer)' 2638 2646 ); 2639 } else { 2640 $myXmailer = trim($this->XMailer); 2641 if ($myXmailer) { 2642 $result .= $this->headerLine('X-Mailer', $myXmailer); 2643 } 2644 } 2647 } elseif (is_string($this->XMailer) && trim($this->XMailer) !== '') { 2648 //Some string 2649 $result .= $this->headerLine('X-Mailer', trim($this->XMailer)); 2650 } //Other values result in no X-Mailer header 2645 2651 2646 2652 if ('' !== $this->ConfirmReadingTo) { -
trunk/src/wp-includes/PHPMailer/SMTP.php
r52252 r52749 36 36 * @var string 37 37 */ 38 const VERSION = '6.5. 3';38 const VERSION = '6.5.4'; 39 39 40 40 /** … … 188 188 'CampaignMonitor' => '/[\d]{3} 2.0.0 OK:([a-zA-Z\d]{48})/', 189 189 'Haraka' => '/[\d]{3} Message Queued \((.*)\)/', 190 'Mailjet' => '/[\d]{3} OK queued as (.*)/', 190 191 ]; 191 192
Note: See TracChangeset
for help on using the changeset viewer.