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:
parent
a104ee9ca6
commit
05a5b7e76c
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@
|
||||||
var proto = textsecure.protobuf.ProvisioningUuid.decode(request.body);
|
var proto = textsecure.protobuf.ProvisioningUuid.decode(request.body);
|
||||||
qrCode.makeCode('tsdevice:/' +
|
qrCode.makeCode('tsdevice:/' +
|
||||||
'?uuid=' + proto.uuid +
|
'?uuid=' + proto.uuid +
|
||||||
'&pub_key=' + btoa(getString(cryptoInfo.pubKey)));
|
'&pub_key=' + encodeURIComponent(btoa(getString(cryptoInfo.pubKey))));
|
||||||
$('img').removeAttr('style');
|
$('img').removeAttr('style');
|
||||||
$('#multi-device .status').text("Use your phone to scan the QR code.")
|
$('#multi-device .status').text("Use your phone to scan the QR code.")
|
||||||
request.respond(200, 'OK');
|
request.respond(200, 'OK');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue