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

Signed-off-by: velleto <rr@velleto.com>
This commit is contained in:
velleto 2018-05-14 18:39:17 +02:00
parent db4a5e149f
commit 093a66625c
No known key found for this signature in database
GPG Key ID: 0EA23CD8EB3FEFAA
1 changed files with 1 additions and 1 deletions

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