Changeset 59481
- Timestamp:
- 12/03/2024 03:20:13 PM (8 weeks ago)
- Location:
- trunk/src/wp-includes/PHPMailer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/PHPMailer/PHPMailer.php
r59246 r59481 254 254 * as defined in RFC5322 section 3.6.4 or it will be ignored. 255 255 * 256 * @see https:// tools.ietf.org/html/rfc5322#section-3.6.4256 * @see https://www.rfc-editor.org/rfc/rfc5322#section-3.6.4 257 257 * 258 258 * @var string … … 388 388 * delivery's outcome (success or failure) is not yet decided. 389 389 * 390 * @see https:// tools.ietf.org/html/rfc3461 See section4.1 for more information about NOTIFY390 * @see https://www.rfc-editor.org/rfc/rfc3461.html#section-4.1 for more information about NOTIFY 391 391 */ 392 392 public $dsn = ''; … … 757 757 * @var string 758 758 */ 759 const VERSION = '6.9. 2';759 const VERSION = '6.9.3'; 760 760 761 761 /** … … 1874 1874 protected static function isPermittedPath($path) 1875 1875 { 1876 //Matches scheme definition from https:// tools.ietf.org/html/rfc3986#section-3.11876 //Matches scheme definition from https://www.rfc-editor.org/rfc/rfc3986#section-3.1 1877 1877 return !preg_match('#^[a-z][a-z\d+.-]*://#i', $path); 1878 1878 } … … 2708 2708 2709 2709 //Only allow a custom message ID if it conforms to RFC 5322 section 3.6.4 2710 //https:// tools.ietf.org/html/rfc5322#section-3.6.42710 //https://www.rfc-editor.org/rfc/rfc5322#section-3.6.4 2711 2711 if ( 2712 2712 '' !== $this->MessageID && … … 4913 4913 * Canonicalized headers should *always* use CRLF, regardless of mailer setting. 4914 4914 * 4915 * @see https:// tools.ietf.org/html/rfc6376#section-3.4.24915 * @see https://www.rfc-editor.org/rfc/rfc6376#section-3.4.2 4916 4916 * 4917 4917 * @param string $signHeader Header … … 4925 4925 //Unfold header lines 4926 4926 //Note PCRE \s is too broad a definition of whitespace; RFC5322 defines it as `[ \t]` 4927 //@see https:// tools.ietf.org/html/rfc5322#section-2.24927 //@see https://www.rfc-editor.org/rfc/rfc5322#section-2.2 4928 4928 //That means this may break if you do something daft like put vertical tabs in your headers. 4929 4929 $signHeader = preg_replace('/\r\n[ \t]+/', ' ', $signHeader); … … 4957 4957 * Canonicalized bodies should *always* use CRLF, regardless of mailer setting. 4958 4958 * 4959 * @see https:// tools.ietf.org/html/rfc6376#section-3.4.34959 * @see https://www.rfc-editor.org/rfc/rfc6376#section-3.4.3 4960 4960 * 4961 4961 * @param string $body Message Body … … 4993 4993 $DKIMtime = time(); 4994 4994 //Always sign these headers without being asked 4995 //Recommended list from https:// tools.ietf.org/html/rfc6376#section-5.4.14995 //Recommended list from https://www.rfc-editor.org/rfc/rfc6376#section-5.4.1 4996 4996 $autoSignHeaders = [ 4997 4997 'from', … … 5099 5099 //The DKIM-Signature header is included in the signature *except for* the value of the `b` tag 5100 5100 //which is appended after calculating the signature 5101 //https:// tools.ietf.org/html/rfc6376#section-3.55101 //https://www.rfc-editor.org/rfc/rfc6376#section-3.5 5102 5102 $dkimSignatureHeader = 'DKIM-Signature: v=1;' . 5103 5103 ' d=' . $this->DKIM_domain . ';' . -
trunk/src/wp-includes/PHPMailer/SMTP.php
r59246 r59481 36 36 * @var string 37 37 */ 38 const VERSION = '6.9. 2';38 const VERSION = '6.9.3'; 39 39 40 40 /** … … 63 63 * *excluding* a trailing CRLF break. 64 64 * 65 * @see https:// tools.ietf.org/html/rfc5321#section-4.5.3.1.665 * @see https://www.rfc-editor.org/rfc/rfc5321#section-4.5.3.1.6 66 66 * 67 67 * @var int … … 73 73 * *including* a trailing CRLF line break. 74 74 * 75 * @see https:// tools.ietf.org/html/rfc5321#section-4.5.3.1.575 * @see https://www.rfc-editor.org/rfc/rfc5321#section-4.5.3.1.5 76 76 * 77 77 * @var int … … 374 374 //Anything other than a 220 response means something went wrong 375 375 //RFC 5321 says the server will wait for us to send a QUIT in response to a 554 error 376 //https:// tools.ietf.org/html/rfc5321#section-3.1376 //https://www.rfc-editor.org/rfc/rfc5321#section-3.1 377 377 if ($responseCode === 554) { 378 378 $this->quit(); … … 583 583 //Send encoded username and password 584 584 if ( 585 //Format from https:// tools.ietf.org/html/rfc4616#section-2585 //Format from https://www.rfc-editor.org/rfc/rfc4616#section-2 586 586 //We skip the first field (it's forgery), so the string starts with a null byte 587 587 !$this->sendCommand( … … 796 796 foreach ($lines_out as $line_out) { 797 797 //Dot-stuffing as per RFC5321 section 4.5.2 798 //https:// tools.ietf.org/html/rfc5321#section-4.5.2798 //https://www.rfc-editor.org/rfc/rfc5321#section-4.5.2 799 799 if (!empty($line_out) && $line_out[0] === '.') { 800 800 $line_out = '.' . $line_out;
Note: See TracChangeset
for help on using the changeset viewer.