Allow users to keep colons between each hex pair of server certificate fingerprint in configuration file.

Signed-off-by: velleto <rr@velleto.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
velleto 2018-05-14 18:39:17 +02:00 committed by Nicolas Sebrecht
parent b150daaa49
commit c126b4286d

View File

@ -293,7 +293,7 @@ class IMAPRepository(BaseRepository):
comma-separated fingerprints in hex form."""
value = self.getconf('cert_fingerprint', "")
return [f.strip().lower() for f in value.split(',') if f]
return [f.strip().lower().replace(":", "") for f in value.split(',') if f]
def setoauth2_request_url(self, url):
self.oauth2_request_url = url