Commit f329d174 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Handle aesgcm:// uri scheme

parent 37f7f485
......@@ -80,10 +80,14 @@ class FileDecryption:
urlparts = urlparse(url)
file = File(urlparts.geturl())
if urlparts.scheme not in ["https"] or not urlparts.netloc:
if urlparts.scheme not in ['https', 'aesgcm'] or not urlparts.netloc:"Not accepting URL for decryption: %s", url)
if urlparts.scheme == 'aesgcm':
log.debug('aesgcm scheme detected')
file.url = 'https://' + file.url[9:]
if not self.is_encrypted(file):'Url not encrypted: %s', url)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment