mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fixes #152
Android client was crashing any time the base64-encoded public key included a '+' due to lack of url encoding.
This commit is contained in:
+1
-1
@@ -144,7 +144,7 @@
|
||||
var proto = textsecure.protobuf.ProvisioningUuid.decode(request.body);
|
||||
qrCode.makeCode('tsdevice:/' +
|
||||
'?uuid=' + proto.uuid +
|
||||
'&pub_key=' + btoa(getString(cryptoInfo.pubKey)));
|
||||
'&pub_key=' + encodeURIComponent(btoa(getString(cryptoInfo.pubKey))));
|
||||
$('img').removeAttr('style');
|
||||
$('#multi-device .status').text("Use your phone to scan the QR code.")
|
||||
request.respond(200, 'OK');
|
||||
|
||||
Reference in New Issue
Block a user