Skip to content

Commit

Permalink
- Js content url encoding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slavenstancic committed May 17, 2020
1 parent ee729a3 commit d3ee863
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wcms-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const wcmsAdminActions = {
*/
contentSave: (id, newContent, dataTarget, dataMenu, dataVisibility, oldContent) => {
if (newContent !== oldContent) {
encodeURIComponent(wcmsAdminActions.sendPostRequest(id, newContent, dataTarget, dataMenu, dataVisibility));
wcmsAdminActions.sendPostRequest(id, newContent, dataTarget, dataMenu, dataVisibility);
return;
}

Expand All @@ -220,7 +220,7 @@ const wcmsAdminActions = {
const dataRaw = {
fieldname: fieldname,
token: token,
content: content,
content: encodeURIComponent(content),
target: target,
menu: menu,
visibility: visibility
Expand Down
2 changes: 1 addition & 1 deletion wcms-admin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d3ee863

Please sign in to comment.