Skip to content

Commit

Permalink
Fix E_DEPRECATED warning when using Auth_SASL::factory() (#5401)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Aug 16, 2016
1 parent 393e428 commit 2fdb9c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ CHANGELOG Roundcube Webmail
- Fix bug where memcache_debug didn't work for session operations
- Fix bug where Message-ID domain part was tied to username instead of current identity (#5385)
- Fix bug where blocked.gif couldn't be attached to reply/forward with insecure content
- Fix E_DEPRECATED warning when using Auth_SASL::factory() (#5401)

RELEASE 1.2.1
-------------
Expand Down
3 changes: 2 additions & 1 deletion program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,8 @@ protected function authenticate($user, $pass, $type = 'PLAIN')
$user = '';
}

$auth_sasl = Auth_SASL::factory('digestmd5');
$auth_sasl = new Auth_SASL;
$auth_sasl = $auth_sasl->factory('digestmd5');
$reply = base64_encode($auth_sasl->getResponse($authc, $pass,
base64_decode($challenge), $this->host, 'imap', $user));

Expand Down

0 comments on commit 2fdb9c4

Please sign in to comment.