Skip to content

Commit

Permalink
URL-friendly parameter encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri Sytov committed Nov 9, 2018
1 parent 73ca54a commit 9f565e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explorer/static/explorer/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ ExplorerEditor.prototype.getParams = function() {
ExplorerEditor.prototype.serializeParams = function(params) {
var args = [];
for(var key in params) {
args.push(key + '%3A' + params[key]);
args.push(key + ':' + params[key]);
}
return args.join('%7C');
return encodeURIComponent(args.join('|'))
};

ExplorerEditor.prototype.doCodeMirrorSubmit = function() {
Expand Down

0 comments on commit 9f565e7

Please sign in to comment.