Skip to content

Commit

Permalink
Add encode URI component to sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
daformat committed May 14, 2014
1 parent b8bdace commit 9f91331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/game_engine/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function createCryptedMessage() {
var ternary_message = string_to_ternary(text);

// Url encrypted message
var total_crypt_message = original_text.toBase64();
var total_crypt_message = encodeURIComponent(original_text.toBase64());

var cipher_message = original_text[0] + original_text[1] + original_text[2];

Expand Down
2 changes: 1 addition & 1 deletion js/scene-decrypter.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ $(function(){
var keyInfo = keyInfoDeCrypt(dataElement[1]);

// url encrypted message
currentGame.cryptedMessage = dataElement[0];
currentGame.cryptedMessage = decodeURIComponent(dataElement[0]);

var keyInfoElement = keyInfo.split('|');

Expand Down

0 comments on commit 9f91331

Please sign in to comment.