Skip to content

Commit

Permalink
Merge pull request #347 from dmitrins/encode_params
Browse files Browse the repository at this point in the history
URL-friendly parameter encoding
  • Loading branch information
chrisclark committed Mar 19, 2019
2 parents c092010 + 9f565e7 commit f289d6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explorer/static/explorer/explorer.js
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 f289d6b

Please sign in to comment.