Skip to content

Commit

Permalink
Clear IMAP capabilities on connection close
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alecpl committed Jan 8, 2024
1 parent 77aca18 commit 797bfe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,7 @@ public function closeConnection()
}

$this->closeSocket();
$this->clearCapability();
}

/**
Expand Down

0 comments on commit 797bfe4

Please sign in to comment.