URL encode arguments for invite endpoint

This commit is contained in:
Alex Liebowitz 2016-07-04 22:07:24 -04:00
parent 2ad24c6b0d
commit 40c336db9b
2 changed files with 2 additions and 1 deletions

BIN
dist.zip

Binary file not shown.

View file

@ -60,7 +60,8 @@ var ClaimCodePage = React.createClass({
xhr.open('POST', 'https://invites.lbry.io', true);
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() {