Skip to content

Commit

Permalink
[fix 1026] Encode email before sending to basket
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Price committed Jul 11, 2016
1 parent 7474bb3 commit 2593760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testpilot/frontend/static-src/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ app.extend({
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: 'newsletters=test-pilot&email=' + email
body: 'newsletters=test-pilot&email=' + encodeURIComponent(email)
}).then(callback)
.catch(err => {
// for now, log the error in the console & do nothing in the UI
Expand Down

0 comments on commit 2593760

Please sign in to comment.