From 797bfe47fcdbb0ae4f24fd98788e06f0859cae12 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 8 Jan 2024 13:57:41 +0100 Subject: [PATCH] Clear IMAP capabilities on connection close Fixes the state on connection close, so when you reconnect there's use of old capabiltieis. This fixes the following scenario: - user connects to imap and authenticates using LOGIN command, after this capabilities may contain LOGINDISABLED - user disconnects - in the same request user connects again and authenticates as before but it can't because of the wrong LOGINDISABLED state. --- program/lib/Roundcube/rcube_imap_generic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index a2c3f1f0f0..b12be8df99 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -1165,6 +1165,7 @@ public function closeConnection() } $this->closeSocket(); + $this->clearCapability(); } /**