"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/OAuth.php" between
PHPMailer-6.2.0.tar.gz and PHPMailer-6.3.0.tar.gz

About: PHPMailer is a PHP email transport class that features multiple file attachments, CCs, BCCs, REPLY-TOs, HTML messages, redundant SMTP servers, and word wrap, among others.

OAuth.php  (PHPMailer-6.2.0):OAuth.php  (PHPMailer-6.3.0)
skipping to change at line 126 skipping to change at line 126
); );
} }
/** /**
* Generate a base64-encoded OAuth token. * Generate a base64-encoded OAuth token.
* *
* @return string * @return string
*/ */
public function getOauth64() public function getOauth64()
{ {
// Get a new token if it's not available or has expired //Get a new token if it's not available or has expired
if (null === $this->oauthToken || $this->oauthToken->hasExpired()) { if (null === $this->oauthToken || $this->oauthToken->hasExpired()) {
$this->oauthToken = $this->getToken(); $this->oauthToken = $this->getToken();
} }
return base64_encode( return base64_encode(
'user=' . 'user=' .
$this->oauthUserEmail . $this->oauthUserEmail .
"\001auth=Bearer " . "\001auth=Bearer " .
$this->oauthToken . $this->oauthToken .
"\001\001" "\001\001"
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)