Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Malte L
gajim-plugins
Commits
f329d174
Commit
f329d174
authored
Apr 05, 2017
by
Philipp Hörist
Browse files
[omemo] Handle aesgcm:// uri scheme
parent
37f7f485
Changes
1
Hide whitespace changes
Inline
Side-by-side
omemo/file_decryption.py
View file @
f329d174
...
...
@@ -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
:
log
.
info
(
"Not accepting URL for decryption: %s"
,
url
)
return
if
urlparts
.
scheme
==
'aesgcm'
:
log
.
debug
(
'aesgcm scheme detected'
)
file
.
url
=
'https://'
+
file
.
url
[
9
:]
if
not
self
.
is_encrypted
(
file
):
log
.
info
(
'Url not encrypted: %s'
,
url
)
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment