From 2298ecf7f60755f3675bc66642ec810f5447e844 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 16 Aug 2016 13:39:13 +0200 Subject: [PATCH] Fix E_DEPRECATED warning when using Auth_SASL::factory() (#5401) --- CHANGELOG | 1 + program/lib/Roundcube/rcube_imap_generic.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index fcb855bde..374d16bc9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -37,6 +37,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 ------------- diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index db36369c4..98352c275 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -575,7 +575,8 @@ class rcube_imap_generic $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));