Changeset 49713 for trunk/src/wp-includes/PHPMailer/SMTP.php
- Timestamp:
- 11/30/2020 05:08:24 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/PHPMailer/SMTP.php
r49136 r49713 1 1 <?php 2 2 3 /** 3 4 * PHPMailer RFC821 SMTP email transport class. … … 35 36 * @var string 36 37 */ 37 const VERSION = '6. 1.8';38 const VERSION = '6.2.0'; 38 39 39 40 /** … … 540 541 } 541 542 // Send encoded username and password 542 if (!$this->sendCommand( 543 'User & Password', 544 base64_encode("\0" . $username . "\0" . $password), 545 235 546 ) 543 if ( 544 !$this->sendCommand( 545 'User & Password', 546 base64_encode("\0" . $username . "\0" . $password), 547 235 548 ) 547 549 ) { 548 550 return false; … … 1087 1089 //If SMTP transcripts are left enabled, or debug output is posted online 1088 1090 //it can leak credentials, so hide credentials in all but lowest level 1089 if (self::DEBUG_LOWLEVEL > $this->do_debug && 1090 in_array($command, ['User & Password', 'Username', 'Password'], true)) { 1091 if ( 1092 self::DEBUG_LOWLEVEL > $this->do_debug && 1093 in_array($command, ['User & Password', 'Username', 'Password'], true) 1094 ) { 1091 1095 $this->edebug('CLIENT -> SERVER: [credentials hidden]', self::DEBUG_CLIENT); 1092 1096 } else { … … 1208 1212 ); 1209 1213 1210 //stream_select returns false when the `select` system call is interrupted by an incoming signal, try the select again 1214 //stream_select returns false when the `select` system call is interrupted 1215 //by an incoming signal, try the select again 1211 1216 if (stripos($message, 'interrupted system call') !== false) { 1212 1217 $this->edebug(
Note: See TracChangeset
for help on using the changeset viewer.