URL encode arguments for invite endpoint
This commit is contained in:
parent
2ad24c6b0d
commit
40c336db9b
2 changed files with 2 additions and 1 deletions
BIN
dist.zip
BIN
dist.zip
Binary file not shown.
|
@ -60,7 +60,8 @@ var ClaimCodePage = React.createClass({
|
||||||
|
|
||||||
xhr.open('POST', 'https://invites.lbry.io', true);
|
xhr.open('POST', 'https://invites.lbry.io', true);
|
||||||
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
||||||
xhr.send('code=' + code + '&address=' + address + '&email=' + email);
|
xhr.send('code=' + encodeURIComponent(code) + '&address=' + encodeURIComponent(address) +
|
||||||
|
'&email=' + encodeURIComponent(email));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleSkip: function() {
|
handleSkip: function() {
|
||||||
|
|
Loading…
Reference in a new issue