Skip to content

Commit

Permalink
Workaround E_DEPRECATED warning on Auth_SASL::factory() call (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl authored and jparise committed Aug 16, 2016
1 parent ecc9906 commit 3a3d284
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Net/SMTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,8 @@ protected function authDigestMD5($uid, $pwd, $authz = '')
return $error;
}

$digest = Auth_SASL::factory('digest-md5');
$auth_sasl = new Auth_SASL;
$digest = $auth_sasl->factory('digest-md5');
$challenge = base64_decode($this->arguments[0]);
$auth_str = base64_encode(
$digest->getResponse($uid, $pwd, $challenge, $this->host, "smtp", $authz)
Expand Down

0 comments on commit 3a3d284

Please sign in to comment.