summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-10-25 13:07:44 -0300
committerVictor Shyba <victor1984@riseup.net>2017-10-27 16:01:47 -0300
commit99658eb24a2cd2bb2c23147a837f9402c11de160 (patch)
tree626219568c4f7cc8d2e30e4e89cb8c15dd0df901 /src/leap
parent83e4e5e65aca6307923d92a7915f3851f1206501 (diff)
[bug] TypeError: Incorrect padding
preamble.py wasn't using urlsafe version of base64, while all other parts of blobs were using it. --Resolves: #8980
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/soledad/common/blobs/preamble.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/soledad/common/blobs/preamble.py b/src/leap/soledad/common/blobs/preamble.py
index a8446c0d..c84ec0fa 100644
--- a/src/leap/soledad/common/blobs/preamble.py
+++ b/src/leap/soledad/common/blobs/preamble.py
@@ -84,7 +84,7 @@ class Preamble(object):
def decode_preamble(encoded_preamble, armored=False):
if armored:
- encoded_preamble = base64.b64decode(encoded_preamble)
+ encoded_preamble = base64.urlsafe_b64decode(encoded_preamble)
preamble_size = len(encoded_preamble)
try:
if preamble_size == LEGACY_PACMAN.size: