Skip to content

Commit

Permalink
Encode uri
Browse files Browse the repository at this point in the history
  • Loading branch information
sonsoleslp committed Apr 9, 2022
1 parent 07a8606 commit c891f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ var insertContent = (type, payload, puzzles, index, prevIndex) => {
content = rankingEmptyTemplate();
break;
case "text":
const replacedText = (payload.text || "").toString().replaceAll("__ESCAPP_USER__",encodeURIComponent(username)).replaceAll("__ESCAPP_TOKEN__",token).replaceAll("__ESCAPP_LOCALE__",ER.locale).replaceAll("__ESCAPP_ENDPOINT__",ER.escappEndpoint)
const replacedText = (payload.text || "").toString().replaceAll("__ESCAPP_USER__",encodeURIComponent(username)).replaceAll("__ESCAPP_TOKEN__",token).replaceAll("__ESCAPP_LOCALE__",ER.locale).replaceAll("__ESCAPP_ENDPOINT__",encodeURIComponent(ER.escappEndpoint))
content = `<div class="cke_editable" id="block-${index}">${escapeUnsafeHtml(replacedText)}</div>`;
break;
case "progress":
Expand Down

0 comments on commit c891f3f

Please sign in to comment.